Sha256: 901cdf5458816f06841a72adb95bea3fcd5627df8b4198bf15063ac7539a6a2d
Contents?: true
Size: 839 Bytes
Versions: 2
Compression:
Stored size: 839 Bytes
Contents
require 'spec_helper' describe Evergreen::Suite do let(:root) { File.expand_path('suite1', File.dirname(__FILE__)) } subject { Evergreen::Suite.new(root) } its(:root) { should == root } describe '#get_spec' do subject { Evergreen::Suite.new(root).get_spec('testing_spec.js') } its (:name) { should == 'testing_spec.js' } its (:root) { should == root } end describe '#specs' do it "should find all specs recursively in the given root directory" do subject.specs.map(&:name).should include('testing_spec.js', 'foo_spec.js', 'bar_spec.js', 'libs/lucid_spec.js', 'models/game_spec.js') end end describe '#templates' do it "should find all specs in the given root directory" do subject.templates.map(&:name).should include('one_template.html', 'another_template.html') end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
rails31-evergreen-0.4.1 | spec/suite_spec.rb |
evergreen-0.4.1 | spec/suite_spec.rb |