Sha256: 29853963bbcbf111677b8faa563bec93a5ae9255f2c877b98c68722639a38279

Contents?: true

Size: 458 Bytes

Versions: 7

Compression:

Stored size: 458 Bytes

Contents

require 'spec_helper'

describe Eyeballs::ModelGenerator do

  before(:all) do
    create_test_root
    FileUtils.cd(test_root)
    Eyeballs::ModelGenerator.start(["Paul"])
  end
  let(:model_file) { file('app', 'models', 'paul.js') }
  
  it "should create my model" do
    model_file.should exist
  end
  
  it "should create my file" do
    model_file.read.should include("o_O('Paul', function(){")
  end
  
  after(:all) do
    remove_test_root
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
eyeballs-0.5.17 spec/model_generator_spec.rb
eyeballs-0.5.16 spec/model_generator_spec.rb
eyeballs-0.5.15 spec/model_generator_spec.rb
eyeballs-0.5.14 spec/model_generator_spec.rb
eyeballs-0.5.13.2 spec/model_generator_spec.rb
eyeballs-0.5.13.1 spec/model_generator_spec.rb
eyeballs-0.5.13 spec/model_generator_spec.rb