From b3cd901c1c45c0da1b02b6ccb56df416164f44dc Mon Sep 17 00:00:00 2001 From: "Munen Alain M. Lafon" Date: Tue, 24 Jun 2014 14:55:28 +0200 Subject: [PATCH] fix spec --- Gemfile | 2 +- Gemfile.lock | 8 ++++---- spec/features/talks_spec.rb | 8 ++++---- spec/features/venues_spec.rb | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Gemfile b/Gemfile index 7c0551187..6511feaba 100644 --- a/Gemfile +++ b/Gemfile @@ -76,7 +76,7 @@ group :development, :test do end group :test do - gem 'capybara'#, '2.0.1' + gem 'capybara' gem 'ci_reporter' gem 'database_cleaner', git: 'git@github.com:bmabey/database_cleaner.git' gem 'guard-rspec' diff --git a/Gemfile.lock b/Gemfile.lock index e1434f6d3..e0d1a69ad 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -75,7 +75,7 @@ GEM capistrano-rbenv (2.0.2) capistrano (~> 3.1) sshkit (~> 1.3) - capybara (2.2.1) + capybara (2.3.0) mime-types (>= 1.16) nokogiri (>= 1.3.3) rack (>= 1.0.0) @@ -246,15 +246,15 @@ GEM railties method_source (0.8.2) mime-types (1.25.1) - mini_portile (0.5.2) + mini_portile (0.6.0) minitest (4.7.5) multi_json (1.9.2) multipart-post (1.2.0) net-scp (1.1.2) net-ssh (>= 2.6.5) net-ssh (2.8.0) - nokogiri (1.6.1) - mini_portile (~> 0.5.0) + nokogiri (1.6.2.1) + mini_portile (= 0.6.0) oauth2 (0.8.1) faraday (~> 0.8) httpauth (~> 0.1) diff --git a/spec/features/talks_spec.rb b/spec/features/talks_spec.rb index 6cfe2fb8f..2a46fada1 100644 --- a/spec/features/talks_spec.rb +++ b/spec/features/talks_spec.rb @@ -48,7 +48,7 @@ end describe "Talks" do - + before do @user = FactoryGirl.create(:user) login_user(@user) @@ -134,16 +134,16 @@ venue = FactoryGirl.create(:venue, user: @user) visit new_venue_talk_path(venue) + fill_in :talk_title, with: 'spec talk title' fill_in :talk_teaser, with: 'spec talk teaser' - # NOTE: Since the WYSIWYG editor is creating an ifrage, we cannot fill in + # NOTE: Since the WYSIWYG editor is creating an iframe, we cannot fill in # the text with Capybara. jQuery to the rescue. page.execute_script('$("iframe").contents().find("body").text("iwannabelikeyou")') # fill in tags - fill_in 's2id_autogen2', with: 'a,b,c,' + fill_in 's2id_autogen3', with: 'a,b,c,' fill_in 'talk_starts_at_date', with: '2014-04-29' fill_in 'talk_starts_at_time', with: '05:12' - fill_in :talk_title, with: 'spec talk title' click_button 'Save' page.should have_selector('.talks-show') page.should have_content('spec talk title') diff --git a/spec/features/venues_spec.rb b/spec/features/venues_spec.rb index d2038404d..47e88543d 100644 --- a/spec/features/venues_spec.rb +++ b/spec/features/venues_spec.rb @@ -126,7 +126,7 @@ visit new_venue_path fill_in 'venue_title', with: 'schubidubi' fill_in 'venue_teaser', with: 'some teaser' - # NOTE: Since the WYSIWYG editor is creating an ifrage, we cannot fill in + # NOTE: Since the WYSIWYG editor is creating an iframe, we cannot fill in # the text with Capybara. jQuery to the rescue. page.execute_script('$("iframe").contents().find("body").text("iwannabelikeyou")') # fill in tags