spec/octopolo/user_config_spec.rb in octopolo-0.2.1 vs spec/octopolo/user_config_spec.rb in octopolo-0.3.0

- old
+ new

@@ -117,9 +117,22 @@ config.full_name = nil config.full_name.should == ENV["USER"] end end + context "#editor" do + let(:config) { UserConfig.new } + + it "returns the configured value" do + config.editor = true + config.editor.should == true + end + + it "returns false otherwise" do + config.editor.should == false + end + end + context "#github_user" do let(:config) { UserConfig.new } let(:username) { "joeperson" } it "returns the configured github_user" do