Sha256: fd45cfdcad29563b9cd025d6618dbe53676b6ed3f42458f64681f639e5abdc3b

Contents?: true

Size: 1.04 KB

Versions: 22

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

22 entries across 22 versions & 4 rubygems

Version Path
dchelimsky-rspec-rails-1.1.11.4 spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.11.5 spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.11.6 spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.11.7 spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.12 spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.99.1 spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.99.13 spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.99.2 spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.99.3 spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.99.4 spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.99.5 spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.99.6 spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.99.7 spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.99.8 spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
dchelimsky-rspec-rails-1.1.99.9 spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
mcmire-rspec-rails-1.1.99.9 spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
rspec-rails-1.1.12 spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
spree-0.6.0 vendor/plugins/rspec-rails/spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
spree-0.7.1 vendor/plugins/rspec-rails/spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
spree-0.7.0 vendor/plugins/rspec-rails/spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb