Skip to content

Commit

Permalink
Handpicked activesupport extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
andriusch committed Dec 6, 2010
1 parent a9ba0c2 commit ba6be7e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion lib/blueprints.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
require 'active_support'
require 'active_support/core_ext'
require 'active_support/core_ext/kernel/singleton_class'
require 'active_support/core_ext/object/blank'
require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/class/attribute_accessors'
require 'active_support/core_ext/hash/reverse_merge'
require 'active_support/core_ext/hash/keys'
require 'active_support/core_ext/enumerable'
require 'database_cleaner'
require 'set'

Expand Down
2 changes: 1 addition & 1 deletion spec/blueprints_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
end

describe "build per describe" do
unless File.dirname(__FILE__).ends_with?('test')
unless File.dirname(__FILE__) =~ /test$/
build_blueprint :apple

it "should have cherry" do
Expand Down
2 changes: 1 addition & 1 deletion test/blueprints_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class BlueprintsTest < ActiveSupport::TestCase
end

context "build per describe" do
unless File.dirname(__FILE__).ends_with?('test')
unless File.dirname(__FILE__) =~ /test$/
build_blueprint :apple

should "have cherry" do
Expand Down

0 comments on commit ba6be7e

Please sign in to comment.