spec/features/index_spec.rb in rapidoc-0.0.6 vs spec/features/index_spec.rb in rapidoc-0.0.7
- old
+ new
@@ -15,15 +15,15 @@
@resources = get_resources
generate_doc
end
before do
- visit '/rapidoc/index.html'
+ visit '/public/docs/index.html'
end
after :all do
- #remove_doc
+ remove_structure
end
context "when check global page" do
it "contains an H1 with text 'Resources'" do
page.should have_css 'h1', :text => 'Resources'
@@ -44,10 +44,10 @@
it "contains the correct methods" do
@resources.each do |resource|
resource.actions_doc.each do |action|
action.urls.each do |url|
if action.has_controller_info
- page.should have_link( url, href: "actions/" + action.file + ".html" )
+ page.should have_link( url, href: "actions/" + action.file.gsub('_','/') + ".html" )
else
page.should have_text( url )
end
end
end