spec/lib/resource_doc_spec.rb in rapidoc-0.0.6 vs spec/lib/resource_doc_spec.rb in rapidoc-0.0.7
- old
+ new
@@ -8,10 +8,14 @@
load_config
@extractor = ControllerExtractor.new "users_controller.rb"
@routes_actions_info = get_routes_doc.get_actions_route_info( :users )
end
+ after :all do
+ remove_structure
+ end
+
context "when create new valid instance only with resource name" do
before do
@resource_name = "users"
@rdoc = ResourceDoc.new @resource_name, nil
end
@@ -27,10 +31,10 @@
@resource_name = "One/Two"
@rdoc = ResourceDoc.new @resource_name, nil
end
it "returns name without '/'" do
- @rdoc.simple_name.should == "OneTwo"
+ @rdoc.simple_name.should == "Two"
end
end
context "when call get_controller_extractor function" do
before do