Skip to content
Browse files

Changing attribute name

  • Loading branch information...
1 parent ed35154 commit 1c382e6380865c90aaa4590cdf186845c912e0b0 @fnando fnando committed Jan 31, 2011
Showing with 6 additions and 6 deletions.
  1. +1 −1 README
  2. +5 −5 spec/files/day_1_spec.rb
View
2 README
@@ -53,7 +53,7 @@ Dia 1: self, classe Singleton e Class
-2. Defina um módulo que implemente os métodos App.name e App.name= utilizando
+2. Defina um módulo que implemente os métodos App.description e App.description= utilizando
a classe Singleton.
Teste: test_day_1.rb#test_exercise_2
View
10 spec/files/day_1_spec.rb
@@ -18,21 +18,21 @@
end
it "should respond to getter" do
- App.should respond_to(:name)
+ App.should respond_to(:description)
end
it "should respond to setter" do
- App.should respond_to(:name=)
+ App.should respond_to(:description=)
end
it "should define App as module" do
App.class.should be(Module)
end
it "should retain value" do
- App.name = "HOWTO Ruby Metaprogramming"
- App.name.should == "HOWTO Ruby Metaprogramming"
- App.instance_variables.should include(:"@name")
+ App.description = "HOWTO Ruby Metaprogramming"
+ App.description.should == "HOWTO Ruby Metaprogramming"
+ App.instance_variables.should include(:"@description")
end
end

0 comments on commit 1c382e6

Please sign in to comment.
Something went wrong with that request. Please try again.