From 3713e0a45090fac0523b2fac1899b8197d8f0a42 Mon Sep 17 00:00:00 2001 From: Ilya Konanykhin Date: Tue, 27 Dec 2016 10:05:35 +0600 Subject: [PATCH] BS3: tests are up-to-date now --- spec/features/site/index_spec.rb | 8 ++++---- spec/features/time_entries/index_spec.rb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/features/site/index_spec.rb b/spec/features/site/index_spec.rb index e341a43..6c36558 100644 --- a/spec/features/site/index_spec.rb +++ b/spec/features/site/index_spec.rb @@ -10,16 +10,16 @@ describe "Index Page" do end it 'should have a link to check in' do - page.should have_button 'CHECK IN' + page.should have_button 'Check in' end it 'should have a link to check out' do - page.should have_button 'CHECK OUT' + page.should have_button 'Check out' end it 'clicking check in should check in a user', js: true do pending - expect{click_button 'CHECK IN'}. + expect{click_button 'Check in'}. to change{@user.checked_in?}. from(false).to(true) end @@ -27,7 +27,7 @@ describe "Index Page" do it 'clicking check out should check out a user', js: true do pending @user.checkin - expect{click_button 'CHECK OUT'}. + expect{click_button 'Check out'}. to change{@user.checked_in?}. from(true).to(false) end diff --git a/spec/features/time_entries/index_spec.rb b/spec/features/time_entries/index_spec.rb index 82d89ef..614bb1f 100644 --- a/spec/features/time_entries/index_spec.rb +++ b/spec/features/time_entries/index_spec.rb @@ -14,7 +14,7 @@ feature "TimeEntries" do scenario "User deletes a time entry", js: true do visit time_entries_path save_screenshot("/tmp/testingpoop.png") - find('button.work_entry-delete-btn').trigger('click') + find('.work_entry-delete-btn').trigger('click') click_button "Delete" expect(page).to have_text("Your Timesheet") expect(TimeEntry.count).to eql 0