Permalink
Browse files

Fixed broken acceptance specs.

  • Loading branch information...
1 parent ddebc90 commit 26ffe086d18b540e7a43c60edbca63a89271a5aa @steveyken steveyken committed Dec 28, 2012
Showing with 4 additions and 3 deletions.
  1. +1 −1 app/views/shared/_add_comment.html.haml
  2. +3 −2 spec/acceptance/opportunities_spec.rb
@@ -5,4 +5,4 @@
%small#comment_intro{ hidden_if(!collapsed) }
= t(:comment_intro)
#campaign_comment{ hidden_if(collapsed) }
- = text_area_tag :comment_body, @comment_body
+ = text_area_tag :comment_body, @comment_body
@@ -26,7 +26,7 @@
page.should have_selector('#opportunity_name', :visible => true)
fill_in 'opportunity_name', :with => 'My Awesome Opportunity'
chosen_select('Example Account', :from => 'account_id')
- select 'Proposal', :from => 'opportunity_stage'
+ select 'prospecting', :from => 'opportunity_stage'
click_link 'Comment'
fill_in 'comment_body', :with => 'This is a very important opportunity.'
click_button 'Create Opportunity'
@@ -43,6 +43,7 @@
scenario "remembers the comment field when the creation was unsuccessful", :js => true do
visit opportunities_page
click_link 'Create Opportunity'
+ select 'prospecting', :from => 'opportunity_stage'
click_link 'Comment'
fill_in 'comment_body', :with => 'This is a very important opportunity.'
@@ -60,7 +61,7 @@
click_link 'Edit'
fill_in 'opportunity_name', :with => 'An Even Cooler Opportunity'
chosen_select('Other Example Account', :from => 'account_id')
- select 'Analysis', :from => 'opportunity_stage'
+ select 'analysis', :from => 'opportunity_stage'
click_button 'Save Opportunity'
page.should have_content('An Even Cooler Opportunity')
click_link 'Opportunities'

0 comments on commit 26ffe08

Please sign in to comment.