Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove ssl config & return simple hash on stub

  • Loading branch information...
commit 919e9d00a02b1a0e74c4c97e932537fbc74eae92 1 parent d863bd2
Jesse Cooke jc00ke authored
Showing with 3 additions and 5 deletions.
  1. +0 −4 slurper_config_https.yml
  2. +3 −1 spec/story_spec.rb
4 slurper_config_https.yml
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
4 spec/story_spec.rb
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
Please sign in to comment.
Something went wrong with that request. Please try again.