spec/unit/post_spec.rb in ayadn-1.7.3 vs spec/unit/post_spec.rb in ayadn-1.7.4
- old
+ new
@@ -43,10 +43,11 @@
Ayadn::Errors.stub(:warn).and_return("warned")
Ayadn::Logs.stub(:rec).and_return("logged")
end
let(:post) { Ayadn::Post.new }
- let(:rest) {Ayadn::CNX = double} #verbose in RSpec output, but useful
+ #let(:rest) {Ayadn::CNX = double} #verbose in RSpec output, but useful
+ let(:rest) {Ayadn::CNX}
describe "#post" do
before do
rest.stub(:post).and_return(File.read("spec/mock/posted.json"))
end