Sha256: bf6648360e18d27d6259299a260753cf3cfa00dd2ef12b20949c8fa0a9c1b6c2
Contents?: true
Size: 940 Bytes
Versions: 7
Compression:
Stored size: 940 Bytes
Contents
require_relative '../../spec_helper' require 'soundcheck/project' require 'soundcheck/frameworks' describe "Frameworks" do let(:project) { Project.new(fixture("null-project")) } describe "Expresso" do let(:framework) { Frameworks::Expresso.new(project) } it "should find the expresso framework" do project.stub(:root => fixture("node-expresso")) framework.present?.should be_true end it "should not find when not there" do project.stub(:root => fixture("null-project")) framework.present?.should be_false end it "should run with no args" do framework.command.should == "expresso --include lib test/*" end it "should not run when args contain no expresso files" do framework.command("spec/foo_spec.rb").should == nil end it "should run with args" do framework.command("test/foo.js").should == "expresso --include lib test/foo.js" end end end
Version data entries
7 entries across 7 versions & 1 rubygems