Sha256: 075b9c131d2ca8849a46e65cc26ddb5d28f2f1cc5d3687719831ada33e9ae47c

Contents?: true

Size: 731 Bytes

Versions: 16

Compression:

Stored size: 731 Bytes

Contents

require 'spec_helper'

CLASS = Rails3::Assist::App

class Helper
  include Rails3::Assist::App
  include Rails3::Assist::Directory
  include Rails3::Assist::Artifact
end

describe 'controller' do
  before do                                         
    Rails3::Assist::Directory.rails_root = fixtures_dir
    @helper = Helper.new
  end

  after do
    remove_temp_dir 'tmp_rails'
  end
    
  it "should create basic root directories" do
    CLASS.create_empty_tmp @helper.root_directories    
    @helper.root_dir.should have_dirs(@helper.root_directories)
  end

  it "should have basic app directories" do
    @helper.create_empty_tmp @helper.app_artifacts
    @helper.app_dir.should have_dirs(@helper.app_directories)
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rails3_assist-0.3.7 spec/rails3_assist/app_spec.rb
rails3_assist-0.3.6 spec/rails3_assist/app_spec.rb
rails3_assist-0.3.5 spec/rails3_assist/app_spec.rb
rails3_assist-0.3.4 spec/rails3_assist/app_spec.rb
rails3_assist-0.3.3 spec/rails3_assist/app_spec.rb
rails3_assist-0.3.2 spec/rails3_assist/app_spec.rb
rails3_assist-0.3.1 spec/rails3_assist/app_spec.rb
rails3_assist-0.3.0 spec/rails3_assist/app_spec.rb
rails3_assist-0.2.13 spec/rails3_assist/app_spec.rb
rails3_assist-0.2.12 spec/rails3_assist/app_spec.rb
rails3_assist-0.2.11 spec/rails3_assist/app_spec.rb
rails3_assist-0.2.10 spec/rails3_assist/app_spec.rb
rails3_assist-0.2.9 spec/rails3_assist/app_spec.rb
rails3_assist-0.2.8 spec/rails3_assist/app_spec.rb
rails3_assist-0.2.7 spec/rails3_assist/app_spec.rb
rails3_assist-0.2.5 spec/rails3_assist/app_spec.rb