Sha256: 1722731c740635304db9e1e1e31d790d410a1118d6a1c35bbdca1bde277ff502

Contents?: true

Size: 309 Bytes

Versions: 3

Compression:

Stored size: 309 Bytes

Contents

class Test::Unit::TestCase

  def self.running_in_foundry
    File.expand_path(File.dirname(__FILE__)) =~ /\/rails_plugin_foundry\//
  end

  def running_in_foundry
    self.class.running_in_foundry
  end

  def self.in_foundry_should(behave,&block)
    should(behave,&block) if running_in_foundry
  end

end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
birdbath-1.3.5 test/foundry_only_helper.rb
birdbath-1.3.4 test/foundry_only_helper.rb
migration_test_helper-1.3.3 ./test/foundry_only_helper.rb