Permalink
Browse files

Remove ssl config & return simple hash on stub

  • Loading branch information...
1 parent d863bd2 commit 919e9d00a02b1a0e74c4c97e932537fbc74eae92 @jc00ke jc00ke committed Dec 14, 2010
Showing with 3 additions and 5 deletions.
  1. +0 −4 slurper_config_https.yml
  2. +3 −1 spec/story_spec.rb
View
@@ -1,4 +0,0 @@
-project_id: 12345 # found in the project settings or address bar in Tracker
-token: 123abc123abc123abc123abc # found on your profile page in Tracker
-requested_by: Johnny Hashrocket # must be a user on the project
-ssl: true # set to true if the project has ssl required
View
@@ -25,9 +25,11 @@
end
it "uses https if set in the config" do
- Story.stub!(:yaml).and_return(YAML.load_file('slurper_config_https.yml'))
+ Story.stub!(:yaml).and_return({"ssl" => true})
+ # Need these two method calls to set up the class vars correctly
Story.yaml['ssl'].should be_true
Story.config['ssl'].should be_true
+
Story.site.scheme.should == "https"
Story.ssl_options[:verify_mode].should == 1
end

0 comments on commit 919e9d0

Please sign in to comment.