Sha256: 4b78bcdae5209a581375bcf8be6bcb6314b343982d7f0442aff646a2a229a903

Contents?: true

Size: 298 Bytes

Versions: 8

Compression:

Stored size: 298 Bytes

Contents

require 'helper'
require 'generators/mock/mock_generator'

class MockGeneratorTest < GeneratorCase
  tests MockGenerator

  test "create mock" do
    run_generator %w(test)
    
    assert_file "app/mocks/test_mock.rb" do |mock|
      assert_match(/class TestMock < Mock/, mock)
    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
neo-rails-0.4.1 test/generator/mock_generator_test.rb
neo-rails-0.4.0 test/generator/mock_generator_test.rb
neo-rails-0.3.2 test/generator/mock_generator_test.rb
neo-rails-0.3.1 test/generator/mock_generator_test.rb
neo-rails-0.3 test/generator/mock_generator_test.rb
neo-rails-0.2.3.1 test/generator/mock_generator_test.rb
neo-rails-0.2.3 test/generator/mock_generator_test.rb
neo-rails-0.2.2 test/generator/mock_generator_test.rb