spec/shutterbug/configuration_spec.rb in shutterbug-0.2.5 vs spec/shutterbug/configuration_spec.rb in shutterbug-0.4.3
- old
+ new
@@ -1,8 +1,6 @@
-
describe Shutterbug::Configuration do
-
let(:uri_prefix) { "http://blah.com/" }
let(:path_prefix) { "/shutterbug" }
let(:resource_dir) { "resource_dir"}
let(:phantom_bin_path) { "phantom_bin_path"}
let(:s3_bin) { nil }
@@ -18,14 +16,10 @@
:s3_bin => s3_bin,
:s3_secret => s3_secret
}
end
-
- # def js_file
-
-
subject { Shutterbug::Configuration.new(opts) }
describe "#fs_path_for(filename)" do |variable|
it "should return <resource_dir>/phantom_<sha>.extension" do
subject.fs_path_for("f208004.png").should == "resource_dir/phantom_f208004.png"
@@ -54,12 +48,10 @@
subject.base_url(req).should == "http://base_url.used.com/"
end
end
end
-
-
describe "use_s3?" do
describe "with no S3 information" do
its(:use_s3?) { should be_false }
end
@@ -76,8 +68,6 @@
its(:use_s3?) { should be_true}
end
end
end
end
-
-
-end
\ No newline at end of file
+end