Skip to content

Commit

Permalink
Fix compat with Solidus 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinetheta committed Apr 29, 2016
1 parent a5a8349 commit 969c6c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions solidus_comments.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'capybara'
s.add_development_dependency 'poltergeist'
s.add_development_dependency 'factory_girl'
s.add_development_dependency 'ffaker'
s.add_development_dependency 'database_cleaner'
s.add_development_dependency 'pry-rails'
end
2 changes: 1 addition & 1 deletion spec/features/admin/order_comments_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
fill_in 'Comment', with: 'A test comment.'
click_button 'Add Comment'

expect(page).to have_text('Comments (1)')
expect(page).to have_text(/Comments \(1\)/i) # uppercase < v1.2, sentence case >= v1.3
expect(page).to have_text('A test comment.')
end
end
1 change: 1 addition & 0 deletions spec/support/factory_girl.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'ffaker'
require 'factory_girl'

FactoryGirl.find_definitions
Expand Down

0 comments on commit 969c6c7

Please sign in to comment.