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
efe98369
Commit
efe98369
authored
Jun 20, 2010
by
fistfvck
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote branch 'adamico/master' into restart
Conflicts: annotate.gemspec spec/annotate/annotate_models_spec.rb
parents
3401f954
adf57a45
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
+15
-2
annotate.gemspec
annotate.gemspec
+1
-1
annotate_models_spec.rb
spec/annotate/annotate_models_spec.rb
+12
-1
spec.opts
spec/spec.opts
+2
-0
No files found.
annotate.gemspec
View file @
efe98369
...
...
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s
.
required_rubygems_version
=
Gem
::
Requirement
.
new
(
">= 0"
)
if
s
.
respond_to?
:required_rubygems_version
=
s
.
authors
=
[
"Cuong Tran"
,
"Alex Chaffee"
,
"Marcos Piccinini"
]
s
.
date
=
%q{20
09-12-14
}
s
.
date
=
%q{20
10-03-11
}
s
.
default_executable
=
%q{annotate}
s
.
description
=
%q{Annotates Rails Models, routes, fixtures, and others based on the database schema.}
s
.
email
=
[
"alex@stinky.com"
,
"ctran@pragmaquest.com"
,
"x@nofxx.com"
]
...
...
spec/annotate/annotate_models_spec.rb
View file @
efe98369
#encoding: utf-8
require
File
.
dirname
(
__FILE__
)
+
'/../spec_helper.rb'
require
'annotate/annotate_models'
require
'rubygems'
require
'activesupport'
require
'active
_
support'
describe
AnnotateModels
do
...
...
@@ -124,6 +125,12 @@ EOF
acts_as_awesome :yah
end
EOS
create
(
'foo_with_utf8.rb'
,
<<-
EOS
)
#encoding: utf-8
class FooWithUtf8 < ActiveRecord::Base
UTF8STRINGS = %w[résumé façon âge]
end
EOS
end
it
"should work"
do
...
...
@@ -136,6 +143,10 @@ EOF
klass
.
name
.
should
==
"FooWithMacro"
end
it
"should not complain of invalid multibyte char (USASCII)"
do
klass
=
AnnotateModels
.
get_model_class
(
"foo_with_utf8.rb"
)
klass
.
name
.
should
==
"FooWithUtf8"
end
end
end
spec/spec.opts
View file @
efe98369
--format=specdoc
--colour
\ No newline at end of file
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