Skip to content

Commit 9061ea8

Browse files
committed
small refactoring
1 parent d285392 commit 9061ea8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/requests/creating_auction_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
require 'spec_helper'
22

33
feature "Creating an Auction", js: true do
4-
let!(:user){User.create!(name: "Sam the Seller", email: "mail@email.com", password: "123456")}
4+
let!(:user){ObjectMother.create_user}
55

66
background do
77
do_login! user
88
end
99

1010
scenario "Successfully creating an auction" do
1111
visit new_auction_path
12+
1213
fill_in "auction_params_item_name", with: "Stamps"
1314
fill_in "Item description", with: "Collection of stamps"
1415
fill_in "Buy it now price", with: "200"

0 commit comments

Comments
 (0)