changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec_on_rails/spec/rails/matchers/errors_on_spec.rb

changeset 16: 01fd3f10ae84
author: moriq@moriq.com
date: Mon Mar 10 10:13:18 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add plugins rspec_on_rails
1require File.dirname(__FILE__) + '/../../spec_helper'
2
3describe "error_on" do
4 it "should provide a message including the name of what the error is on" do
5 have(1).error_on(:whatever).description.should == "should have 1 error on :whatever"
6 end
7end
8
9describe "errors_on" do
10 it "should provide a message including the name of what the error is on" do
11 have(2).errors_on(:whatever).description.should == "should have 2 errors on :whatever"
12 end
13end