Sha256: 45ca4b536fdc7e8eeb9ad5161afdb9105ff86ea1be2126e9cbba2e4a24e17b62
Contents?: true
Size: 1.2 KB
Versions: 11
Compression:
Stored size: 1.2 KB
Contents
require 'spec_helper' describe Calatrava::Kernel do include Aruba::Api before(:each) do create_dir 'kernel' create_dir 'kernel/app' write_file 'kernel/app/support.coffee', '' create_dir 'kernel/app/mod1' write_file 'kernel/app/mod1/first.coffee', '' create_dir 'kernel/plugins' write_file 'kernel/plugins/plugin.one.coffee', '' write_file 'kernel/plugins/two.coffee', '' end let(:kernel) { Calatrava::Kernel.new(current_dir) } context '#features' do subject { kernel.features } it { should have(1).features } context 'a single feature' do subject { kernel.features[0] } it { should include :name => 'mod1' } it { should include :coffee => ['kernel/app/mod1/first.coffee'] } end end context '#coffee_files' do subject { kernel.coffee_files } it { should have(3).files } it { should include 'kernel/app/support.coffee' } it { should include 'kernel/plugins/plugin.one.coffee' } it { should include 'kernel/plugins/two.coffee' } end context '#coffee_path' do subject { kernel.coffee_path } it { should include 'app:' } it { should include 'app/mod1' } it { should include 'app/plugins' } end end
Version data entries
11 entries across 11 versions & 1 rubygems