Commit fcbec0e2 by Kirill Lashuk

Fix parenthesis.

parent c7219e9d
...@@ -72,7 +72,7 @@ EOS ...@@ -72,7 +72,7 @@ EOS
end end
it "should work" do it "should work" do
create('foo.rb', <<-EOS) create 'foo.rb', <<-EOS
class Foo < ActiveRecord::Base class Foo < ActiveRecord::Base
end end
EOS EOS
...@@ -80,7 +80,7 @@ EOS ...@@ -80,7 +80,7 @@ EOS
end end
it "should not care about unknown macros" do it "should not care about unknown macros" do
create('foo_with_macro.rb', <<-EOS) create 'foo_with_macro.rb', <<-EOS
class FooWithMacro < ActiveRecord::Base class FooWithMacro < ActiveRecord::Base
acts_as_awesome :yah acts_as_awesome :yah
end end
...@@ -89,7 +89,7 @@ EOS ...@@ -89,7 +89,7 @@ EOS
end end
it "should find models with non standard capitalization" do it "should find models with non standard capitalization" do
create('foo_with_capitals.rb', <<-EOS) create 'foo_with_capitals.rb', <<-EOS
class FooWithCAPITALS < ActiveRecord::Base class FooWithCAPITALS < ActiveRecord::Base
end end
EOS EOS
...@@ -97,7 +97,7 @@ EOS ...@@ -97,7 +97,7 @@ EOS
end end
it "should find models inside modules" do it "should find models inside modules" do
create('bar/foo_inside_bar.rb', <<-EOS) create 'bar/foo_inside_bar.rb', <<-EOS
module Bar module Bar
class FooInsideBar < ActiveRecord::Base class FooInsideBar < ActiveRecord::Base
end end
...@@ -107,7 +107,7 @@ EOS ...@@ -107,7 +107,7 @@ EOS
end end
it "should find models inside modules with non standard capitalization" do it "should find models inside modules with non standard capitalization" do
create('bar/foo_inside_capitals_bar.rb', <<-EOS) create 'bar/foo_inside_capitals_bar.rb', <<-EOS
module BAR module BAR
class FooInsideCapitalsBAR < ActiveRecord::Base class FooInsideCapitalsBAR < ActiveRecord::Base
end end
...@@ -117,7 +117,7 @@ EOS ...@@ -117,7 +117,7 @@ EOS
end end
it "should find non-namespaced models inside subdirectories" do it "should find non-namespaced models inside subdirectories" do
create('bar/non_namespaced_foo_inside_bar.rb', <<-EOS) create 'bar/non_namespaced_foo_inside_bar.rb', <<-EOS
class NonNamespacedFooInsideBar < ActiveRecord::Base class NonNamespacedFooInsideBar < ActiveRecord::Base
end end
EOS EOS
...@@ -125,7 +125,7 @@ EOS ...@@ -125,7 +125,7 @@ EOS
end end
it "should find non-namespaced models with non standard capitalization inside subdirectories" do it "should find non-namespaced models with non standard capitalization inside subdirectories" do
create('bar/non_namespaced_foo_with_capitals_inside_bar.rb', <<-EOS) create 'bar/non_namespaced_foo_with_capitals_inside_bar.rb', <<-EOS
class NonNamespacedFooWithCapitalsInsideBar < ActiveRecord::Base class NonNamespacedFooWithCapitalsInsideBar < ActiveRecord::Base
end end
EOS EOS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment