Sha256: a335165b6911a39346086cf596a6784ac911187fc91412db7756c5bad994727d

Contents?: true

Size: 653 Bytes

Versions: 8

Compression:

Stored size: 653 Bytes

Contents

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],
      libraries: [: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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shoulda-matchers-3.1.3 spec/acceptance/active_model_integration_spec.rb
shoulda-matchers-4.0.0.rc1 spec/acceptance/active_model_integration_spec.rb
shoulda-matchers-3.1.2 spec/acceptance/active_model_integration_spec.rb
shoulda-matchers-3.1.1 spec/acceptance/active_model_integration_spec.rb
shoulda-matchers-3.1.0 spec/acceptance/active_model_integration_spec.rb
shoulda-matchers-3.0.1 spec/acceptance/active_model_integration_spec.rb
shoulda-matchers-3.0.0 spec/acceptance/active_model_integration_spec.rb
shoulda-matchers-3.0.0.rc1 spec/acceptance/active_model_integration_spec.rb