mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
7f425948f8
Fixes cases where you may be using ActiveModel without ActiveRecord. Also add a test for loading without ActiveRecord. The Cucumber feature creates a Gemfile containing ActiveModel and shoulda-matchers, and then asserts that both can be loaded without any errors. The ActiveModel version used will match that of the Rails version specified in the Appraisal Gemfile; and if no such version can be determined, the latest will be used. Closes #480.
15 lines
584 B
Gherkin
15 lines
584 B
Gherkin
Feature: integration with ActiveModel
|
|
|
|
Scenario: create a new project using matchers
|
|
When I generate a new ActiveModel application
|
|
And I configure the application to use "shoulda-matchers" from this project
|
|
And I write to "load_dependencies.rb" with:
|
|
"""
|
|
require 'active_model'
|
|
require 'shoulda-matchers'
|
|
|
|
puts ActiveModel::VERSION::STRING
|
|
puts "Loaded all dependencies without errors"
|
|
"""
|
|
When I successfully run `bundle exec ruby load_dependencies.rb`
|
|
Then the output should contain "Loaded all dependencies without errors"
|