Sha256: ff51b13db191f0d95f58858c86f95a56c2da1b5464f8c14eead6e624526a1e51

Contents?: true

Size: 585 Bytes

Versions: 1

Compression:

Stored size: 585 Bytes

Contents

require 'test_helper'
class ControllersGeneratorTest < Rails::Generators::TestCase
  
  include Dailycred::GeneratorTestHelpers
  destination File.expand_path("../support/tmp/myproject", File.dirname(__FILE__))
  tests Dailycred::Generators::ViewsGenerator

  test "creates correct view files" do
    run_generator
    assert_file "app/views/dailycred/sessions/info.html.erb"
    assert_file "app/views/dailycred/sessions/_login.html.erb"
    assert_file "app/views/dailycred/sessions/_signup.html.erb"
    assert_file "app/views/dailycred/sessions/_reset_password.html.erb"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dailycred-0.3.1 test/generators/views_generator_test.rb