File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ def file
139
139
140
140
it "accepts http remote sources" do
141
141
body = "__start__\n HTTPFILE\n __end__\n "
142
- stub_request ( :get , "http://example.com/file.txt" ) . to_return ( :body => body )
142
+ stub_request ( :get , "http://example.com/file.txt" ) . to_return ( :body => body . dup )
143
143
action :get , "http://example.com/file.txt" do |content |
144
144
expect ( a_request ( :get , "http://example.com/file.txt" ) ) . to have_been_made
145
145
expect ( content ) . to eq ( body )
@@ -148,7 +148,7 @@ def file
148
148
149
149
it "accepts https remote sources" do
150
150
body = "__start__\n HTTPSFILE\n __end__\n "
151
- stub_request ( :get , "https://example.com/file.txt" ) . to_return ( :body => body )
151
+ stub_request ( :get , "https://example.com/file.txt" ) . to_return ( :body => body . dup )
152
152
action :get , "https://example.com/file.txt" do |content |
153
153
expect ( a_request ( :get , "https://example.com/file.txt" ) ) . to have_been_made
154
154
expect ( content ) . to eq ( body )
You can’t perform that action at this time.
0 commit comments