Sha256: 4705fc3c9ea733796a1d2c1203b92925545c479c83e4be9e3b61981bc3ac1e08

Contents?: true

Size: 629 Bytes

Versions: 5

Compression:

Stored size: 629 Bytes

Contents

Given "I have a form I wish to use with Rails" do |file_content|
  write_file 'my_form.rb', file_content
end

When "I run the active model lint tests for" do |instance|
  write_file 'test_active_model_compliance.rb', <<-TEST
module Rails
end

require 'test/unit'
require '#{ File.expand_path "../../../" + dirs.join('/'), __FILE__ }/my_form'

class TestActiveModelCompliance < Test::Unit::TestCase
  include ActiveModel::Lint::Tests

  def model
  #{ instance }
  end

end
TEST
  run_simple 'ruby -Itest test_active_model_compliance.rb', true, 5
end

Then "it should pass" do
  assert_partial_output '0 failures', all_output
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pr-0.0.6 features/step_definitions/active_model_steps.rb
pr-0.0.5 features/step_definitions/active_model_steps.rb
pr-0.0.4 features/step_definitions/active_model_steps.rb
pr-0.0.3 features/step_definitions/active_model_steps.rb
pr-0.0.2 features/step_definitions/active_model_steps.rb