Created
November 12, 2009 12:14
-
-
Save robertbrook/232854 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe Act do | |
describe "when asked for name and year" do | |
it 'should return "Abdication Act" for Act with title "Abdication Act" and nil year' do | |
act = Act.new(:name => "Abdication Act") | |
act.name_and_year.should == "Abdication Act" | |
end | |
it 'should return "Access to Health Records Act 1990" for Act with title "Access to Health Records Act" and year 1990' do | |
act = Act.new(:name => "Access to Health Records Act", :year => 1990) | |
act.name_and_year.should == "Access to Health Records Act 1990" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment