Sha256: 38166be76f694f2ed566517ed997d0a5323c0334a8bd65101baabbcadc4a8335

Contents?: true

Size: 730 Bytes

Versions: 1

Compression:

Stored size: 730 Bytes

Contents

require 'test_helper'
require 'api_problem'

class CellGeneratorTest < Rails::Generators::TestCase
  p "asflkasflksadjflaksdjfl;k"
  destination File.join(Rails.root, "tmp")
  setup :prepare_destination
  tests ::Cells::Generators::CellGenerator

  test "create the standard assets" do
    run_generator %w(Blog post latest)

    assert_file "app/cells/blog_cell.rb", /class BlogCell < Cell::Rails/
    assert_file "app/cells/blog_cell.rb", /def post/
    assert_file "app/cells/blog_cell.rb", /def latest/
    assert_file "app/cells/blog/post.html.erb", %r(app/cells/blog/post.html.erb)
    assert_file "app/cells/blog/latest.html.erb", %r(app/cells/blog/latest.html.erb)
    assert_file "test/cells/blog_cell_test.rb"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
api_problem-0.0.2 test/api_problem_generator.rb