Skip to content

Commit

Permalink
spec coverage has been slightly improved
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurii Rashkovskii committed May 3, 2008
1 parent 17e7620 commit f3a5e10
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 deletions.
2 changes: 1 addition & 1 deletion lib/strokedb.rb
Expand Up @@ -20,7 +20,7 @@ module StrokeDB

# Coverage threshold - bump this float anytime your changes increase the spec coverage
# DO NOT LOWER THIS NUMBER. EVER.
COVERAGE = 91.9
COVERAGE = 92

# UUID regexp (like 1e3d02cc-0769-4bd8-9113-e033b246b013)
UUID_RE = /([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/
Expand Down
29 changes: 0 additions & 29 deletions lib/strokedb/util/attach_dsl.rb
Expand Up @@ -26,33 +26,4 @@ def dsl
end
end

if $0 == __FILE__

module MetaDSL
def on_initialize(&block)
store_dsl_options("on_initialize", block)
end
end

module HasMany
attach_dsl MetaDSL
def has_many(*args)
store_dsl_options("has_many", { :module => HasMany, :args => args } )
puts "has_many defined in #{self.inspect}"
end
on_initialize do |doc|
blah_blah
end
end

module App1
attach_dsl HasMany
has_many :blah, :blah => :blah
end

p App1.dsl
p App1.dsl["has_many"][:module].dsl

end


0 comments on commit f3a5e10

Please sign in to comment.