Sha256: fa275848088fefc026866b0dfccfb200efc58bae509fdd2fd853f3be6820d4a3

Contents?: true

Size: 476 Bytes

Versions: 3

Compression:

Stored size: 476 Bytes

Contents

require 'spec_helper'

describe Eyeballs::ControllerGenerator do

  before(:all) do
    create_test_root
    run_command("eyeballs generate controller Paul")
  end
  
  let(:controller_file) { file('app/controllers/paul_controller.js') }
  
  it "should create my controller" do
    controller_file.should exist
  end
  
  it "should create my file" do
    controller_file.read.should include("o_O('PaulController', {")
  end
  
  after(:all) do
    remove_test_root
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
eyeballs-0.3.5 spec/controller_generator_spec.rb
eyeballs-0.3.4.1 spec/controller_generator_spec.rb
eyeballs-0.3.4 spec/controller_generator_spec.rb