Skip to content

Instantly share code, notes, and snippets.

@robertbrook
Created November 12, 2009 12:14
Show Gist options
  • Save robertbrook/232854 to your computer and use it in GitHub Desktop.
Save robertbrook/232854 to your computer and use it in GitHub Desktop.
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