spec/ymdp_base_spec.rb in ymdp-0.1.7 vs spec/ymdp_base_spec.rb in ymdp-0.1.8
- old
+ new
@@ -104,11 +104,11 @@
describe "add" do
it "should add a content_variable" do
YMDP::Base.configure do |config|
config.add_content_variable(:funky, "Real funky")
end
- @ymdp.funky.should == "Real funky"
+ @ymdp.content_variables.should == {:funky => "Real funky"}
end
end
describe "load" do
before(:each) do
@@ -120,11 +120,11 @@
it "should load version from a file" do
YMDP::Base.configure do |config|
config.load_content_variables "content"
end
- @ymdp.version.should == "1.1"
+ @ymdp.content_variables["version"].should == "1.1"
end
end
describe "set" do
before(:each) do
@@ -135,14 +135,14 @@
}
end
end
it "should set sprint name in content variables" do
- @ymdp.version.should == "1.2"
+ @ymdp.content_variables["version"] == "1.2"
end
it "should set sprint name in content variables" do
- @ymdp.sprint_name.should == "Gorgonzola"
+ @ymdp.content_variables["sprint_name"].should == "Gorgonzola"
end
end
describe "display_path" do
it "should strip base_path from the display" do
\ No newline at end of file