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
Show 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
end
it
"should work"
do
create
(
'foo.rb'
,
<<-
EOS
)
create
'foo.rb'
,
<<-
EOS
class Foo < ActiveRecord::Base
end
EOS
...
...
@@ -80,7 +80,7 @@ EOS
end
it
"should not care about unknown macros"
do
create
(
'foo_with_macro.rb'
,
<<-
EOS
)
create
'foo_with_macro.rb'
,
<<-
EOS
class FooWithMacro < ActiveRecord::Base
acts_as_awesome :yah
end
...
...
@@ -89,7 +89,7 @@ EOS
end
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
end
EOS
...
...
@@ -97,7 +97,7 @@ EOS
end
it
"should find models inside modules"
do
create
(
'bar/foo_inside_bar.rb'
,
<<-
EOS
)
create
'bar/foo_inside_bar.rb'
,
<<-
EOS
module Bar
class FooInsideBar < ActiveRecord::Base
end
...
...
@@ -107,7 +107,7 @@ EOS
end
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
class FooInsideCapitalsBAR < ActiveRecord::Base
end
...
...
@@ -117,7 +117,7 @@ EOS
end
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
end
EOS
...
...
@@ -125,7 +125,7 @@ EOS
end
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
end
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