spec/configuration_spec.rb in jiralicious-0.1.0 vs spec/configuration_spec.rb in jiralicious-0.2.0
- old
+ new
@@ -27,6 +27,15 @@
Jiralicious.password.should == "derp"
Jiralicious.uri.should == "http://example.com/foo/bar"
Jiralicious.api_version.should == "2.0aplha"
Jiralicious.auth_type.should == :cookie_session
end
+
+ it "loads the yml in the specified format into the configuation variables" do
+ Jiralicious.load_yml(jira_yml)
+ Jiralicious.username.should == "jira_admin"
+ Jiralicious.password.should == "jira_admin"
+ Jiralicious.uri.should == "http://localhost:8080"
+ Jiralicious.api_version.should == "latest"
+ Jiralicious.auth_type.should == :basic
+ end
end