Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
annotate
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
annotate
Commits
fcbec0e2
Commit
fcbec0e2
authored
Jan 29, 2012
by
Kirill Lashuk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix parenthesis.
parent
c7219e9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
annotate_models_spec.rb
spec/annotate/annotate_models_spec.rb
+7
-7
No files found.
spec/annotate/annotate_models_spec.rb
View file @
fcbec0e2
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment