1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00
thoughtbot--shoulda-matchers/spec/acceptance/active_model_integration_spec.rb
2015-02-09 10:52:51 -07:00

23 lines
649 B
Ruby

require 'acceptance_spec_helper'
describe 'shoulda-matchers integrates with an ActiveModel project' do
specify 'and loads without errors' do
create_active_model_project
add_shoulda_matchers_to_project(
test_frameworks: [:rspec],
library: :active_model
)
write_file 'load_dependencies.rb', <<-FILE
require 'active_model'
require 'shoulda-matchers'
puts ActiveModel::VERSION::STRING
puts "Loaded all dependencies without errors"
FILE
result = run_command_within_bundle('ruby load_dependencies.rb')
expect(result).to have_output('Loaded all dependencies without errors')
end
end