spec/fdoc/presenters/endpoint_presenter_spec.rb in fdoc-0.3.0 vs spec/fdoc/presenters/endpoint_presenter_spec.rb in fdoc-0.3.1
- old
+ new
@@ -17,10 +17,17 @@
Nokogiri::HTML(html) { |config| config.strict }
}.to_not raise_exception
end
end
+ context "#to_markdown" do
+ it "should generate markdown" do
+ markdown = subject.to_markdown
+ markdown.should include "# GET spec​/fixtures​/members​/list"
+ end
+ end
+
context "#example_from_schema" do
example_schema_yaml = <<-EOS
properties:
name:
type: string
@@ -88,6 +95,6 @@
it "should generate an example response from the contents of the schema" do
subject.example_from_schema(example_schema).should == expected_example
end
end
-end
\ No newline at end of file
+end