spec/lib/fozzie/configuration_spec.rb in fozzie-0.0.23 vs spec/lib/fozzie/configuration_spec.rb in fozzie-0.0.24

- old
+ new

@@ -34,12 +34,11 @@ subject.appname = 'astoria' subject.data_prefix.should eq 'astoria.test' end it "creates a prefix with origin" do - subject.stubs(:origin_name).returns("app.server.local") subject.appname = 'astoria' - subject.data_prefix.should eq 'astoria.app-server-local.test' + subject.data_prefix.should match /^astoria\.(\S+)\.test$/ end it "handles missing configuration namespace" do proc { Fozzie::Configuration.new({:env => 'blbala', :config_path => 'spec/'}) }.should_not raise_error end \ No newline at end of file