From 45a44844ca0cba0bc893edc2aa566d472ded5fb3 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Mon, 25 Aug 2014 16:38:17 +1000 Subject: [PATCH] Remove old rabl spec --- .../enterprise_relationships_rabl_spec.rb | 23 ------------------- 1 file changed, 23 deletions(-) delete mode 100644 spec/views/admin/json/enterprise_relationships_rabl_spec.rb diff --git a/spec/views/admin/json/enterprise_relationships_rabl_spec.rb b/spec/views/admin/json/enterprise_relationships_rabl_spec.rb deleted file mode 100644 index 9b72a0d45b..0000000000 --- a/spec/views/admin/json/enterprise_relationships_rabl_spec.rb +++ /dev/null @@ -1,23 +0,0 @@ -require 'spec_helper' - -describe "admin/json/_enterprise_relationships.json.rabl" do - let(:parent) { create(:enterprise) } - let(:child) { create(:enterprise) } - let(:enterprise_relationship) { create(:enterprise_relationship, parent: parent, child: child) } - let(:render) { Rabl.render([enterprise_relationship], 'admin/json/enterprise_relationships', view_path: 'app/views', scope: RablHelper::FakeContext.instance) } - - it "renders a list of enterprise relationships" do - render.should have_json_type(Array).at_path '' - render.should have_json_type(Object).at_path '0' - end - - it "renders enterprise ids" do - render.should be_json_eql(parent.id).at_path '0/parent_id' - render.should be_json_eql(child.id).at_path '0/child_id' - end - - it "renders enterprise names" do - render.should be_json_eql(parent.name.to_json).at_path '0/parent_name' - render.should be_json_eql(child.name.to_json).at_path '0/child_name' - end -end