Skip to content

Commit

Permalink
Remove ssl config & return simple hash on stub
Browse files Browse the repository at this point in the history
  • Loading branch information
jc00ke committed Dec 14, 2010
1 parent d863bd2 commit 919e9d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions slurper_config_https.yml

This file was deleted.

4 changes: 3 additions & 1 deletion spec/story_spec.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
end end


it "uses https if set in the config" do 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.yaml['ssl'].should be_true
Story.config['ssl'].should be_true Story.config['ssl'].should be_true

Story.site.scheme.should == "https" Story.site.scheme.should == "https"
Story.ssl_options[:verify_mode].should == 1 Story.ssl_options[:verify_mode].should == 1
end end
Expand Down

0 comments on commit 919e9d0

Please sign in to comment.