Sha256: ead55f0fe86546adec9d1a67398ea2ae37ec6d71f3478707e0f737883ec0dc43

Contents?: true

Size: 459 Bytes

Versions: 54

Compression:

Stored size: 459 Bytes

Contents

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

describe "error_on" do
  it "should provide a message including the name of what the error is on" do
    have(1).error_on(:whatever).description.should == "should have 1 error on :whatever"
  end
end

describe "errors_on" do
  it "should provide a message including the name of what the error is on" do
    have(2).errors_on(:whatever).description.should == "should have 2 errors on :whatever"
  end
end

Version data entries

54 entries across 54 versions & 11 rubygems

Version Path
dchelimsky-rspec-rails-1.1.6 spec/rails/matchers/errors_on_spec.rb
dchelimsky-rspec-rails-1.1.7 spec/rails/matchers/errors_on_spec.rb
dchelimsky-rspec-rails-1.1.8 spec/rails/matchers/errors_on_spec.rb
jcnetdev-rspec-rails-1.1.5 spec/rails/matchers/errors_on_spec.rb
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec-rails/spec/rails/matchers/errors_on_spec.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec-rails/spec/rails/matchers/errors_on_spec.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec-rails/spec/rails/matchers/errors_on_spec.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec-rails/spec/rails/matchers/errors_on_spec.rb
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/matchers/errors_on_spec.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/matchers/errors_on_spec.rb
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/matchers/errors_on_spec.rb
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/matchers/errors_on_spec.rb
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/matchers/errors_on_spec.rb
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/matchers/errors_on_spec.rb
jstorimer-deep-test-0.2.0 sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/matchers/errors_on_spec.rb
jstorimer-deep-test-0.1.0 sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/matchers/errors_on_spec.rb
deckshuffler-0.0.2 vendor/plugins/rspec_on_rails/spec/rails/matchers/errors_on_spec.rb
picolena-0.0.99 app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/matchers/errors_on_spec.rb
picolena-0.1.0 rails_plugins/rspec_on_rails/spec/rails/matchers/errors_on_spec.rb
picolena-0.1.1 rails_plugins/rspec_on_rails/spec/rails/matchers/errors_on_spec.rb