Sha256: 7556a258a45f91fad9243696f91ee737fb63c36c98cc52c69d44e26dd18af1c5

Contents?: true

Size: 1.04 KB

Versions: 64

Compression:

Stored size: 1.04 KB

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

describe "assert_equal", :shared => true do
  it "like assert_equal" do
    assert_equal 1, 1
    lambda {
      assert_equal 1, 2
    }.should raise_error(Test::Unit::AssertionFailedError)
  end
end

describe "A model spec should be able to access 'test/unit' assertions", :type => :model do
  it_should_behave_like "assert_equal"
end

describe "A view spec should be able to access 'test/unit' assertions", :type => :view do
  it_should_behave_like "assert_equal"
end

describe "A helper spec should be able to access 'test/unit' assertions", :type => :helper do
  it_should_behave_like "assert_equal"
end

describe "A controller spec with integrated views should be able to access 'test/unit' assertions", :type => :controller do
  controller_name :controller_spec
  integrate_views
  it_should_behave_like "assert_equal"
end

describe "A controller spec should be able to access 'test/unit' assertions", :type => :controller do
  controller_name :controller_spec
  it_should_behave_like "assert_equal"
end

Version data entries

64 entries across 64 versions & 10 rubygems

Version Path
dchelimsky-rspec-rails-1.1.10 spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.11.1 spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.11.2 spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.11.3 spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.11 spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.6 spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.7 spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.8 spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.9 spec/rails/example/test_unit_assertion_accessibility_spec.rb
jcnetdev-rspec-rails-1.1.5 spec/rails/example/test_unit_assertion_accessibility_spec.rb
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec-rails/spec/rails/example/test_unit_assertion_accessibility_spec.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec-rails/spec/rails/example/test_unit_assertion_accessibility_spec.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec-rails/spec/rails/example/test_unit_assertion_accessibility_spec.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec-rails/spec/rails/example/test_unit_assertion_accessibility_spec.rb
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/example/test_unit_assertion_accessibility_spec.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/example/test_unit_assertion_accessibility_spec.rb
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/example/test_unit_assertion_accessibility_spec.rb
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/example/test_unit_assertion_accessibility_spec.rb
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/example/test_unit_assertion_accessibility_spec.rb
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/example/test_unit_assertion_accessibility_spec.rb