spec/lib/rambo_spec.rb in rambo_ruby-0.6.0 vs spec/lib/rambo_spec.rb in rambo_ruby-0.7.0
- old
+ new
@@ -62,9 +62,19 @@
.with("/Users/dscheider/rambo/doc/raml/#{valid_file}", { framework: :"sinatra:modular" })
Rambo.generate_contract_tests!
end
end
+ context "framework set to Rory" do
+ it "sets the framework to Rory" do
+ allow(Rambo).to receive(:yaml_options).and_return({ framework: :rory })
+ expect(Rambo::DocumentGenerator)
+ .to receive(:generate!)
+ .with("/Users/dscheider/rambo/doc/raml/#{valid_file}", { framework: :rory })
+ Rambo.generate_contract_tests!
+ end
+ end
+
context "framework set to Grape" do
it "sets framework to Grape" do
allow(Rambo).to receive(:yaml_options).and_return({ framework: :grape })
expect(Rambo::DocumentGenerator)
.to receive(:generate!)