Sha256: 7abc61085f026317df105e67ce17fe27971bbaf8bf73e74434c35a9164fa7954

Contents?: true

Size: 658 Bytes

Versions: 5

Compression:

Stored size: 658 Bytes

Contents

require 'rubygems'
require 'test/unit'
require 'shoulda'
require 'redgreen'
require 'mocha'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

require 'scaffolder'

class Test::Unit::TestCase
  class << self

    def should_have_method_attribute(klass)
      should "have method #attribute" do
        assert_respond_to( klass, :attribute )
      end
    end

    def should_have_attribute(klass, *attributes)
      attributes.each do |attribute|
        should "have instance attribute #{attribute}" do
          assert_respond_to( klass.new, attribute )
        end
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
scaffolder-0.4.4 test/helper.rb
scaffolder-0.4.3 test/helper.rb
scaffolder-0.4.2 test/helper.rb
scaffolder-0.4.1 test/helper.rb
scaffolder-0.4.0 test/helper.rb