spec/shelly/app_spec.rb in shelly-0.1.12 vs spec/shelly/app_spec.rb in shelly-0.1.13

- old
+ new

@@ -10,9 +10,14 @@ @app = Shelly::App.new @app.code_name = "foo-staging" end describe ".guess_code_name" do + it "should downcase and dasherize code name" do + Dir.stub(:pwd).and_return("/project/FOO") + Shelly::App.guess_code_name.should == "foo-staging" + end + context "no Cloudfile" do it "should return name of current working directory" do Shelly::App.guess_code_name.should == "foo-staging" end end