Sha256: d948193771fde1fd9c85d2df9e84b721caa287b18b9b1b46e1dc708641b53673

Contents?: true

Size: 494 Bytes

Versions: 2

Compression:

Stored size: 494 Bytes

Contents

require 'test_helper'

require "generators/streamit/streamit_generator"

class StreamitGeneratorTest < Rails::Generators::TestCase
  tests Streamit::Generators::StreamitGenerator
  destination File.expand_path("../../tmp", __FILE__)

  setup :prepare_destination

  test "all files are properly created" do
    run_generator %w(goblin)
    assert_file "app/models/goblin.rb", /Stream/
    assert_file "config/initializers/streamit.rb"
    assert_file "config/locales/streamit.en.yml"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
streamit-0.0.8 test/generators/streamit_generator_test.rb
streamit-0.0.7 test/generators/streamit_generator_test.rb