Sha256: 642ffe77cb71d9ad8f998af95b2af20c1282780d0dfe5f274c3c0cff4295cbe0
Contents?: true
Size: 629 Bytes
Versions: 1
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 unescape 'ruby -Itest test_active_model_compliance.rb' end Then "it should pass" do assert_partial_output '0 failures', all_output end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pr-0.0.1 | features/step_definitions/active_model_steps.rb |