Skip to content

Commit 96de9e9

Browse files
committed
fix breadcrumbs specs
1 parent dd00847 commit 96de9e9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spec/unit/view_helpers/breadcrumbs_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,26 +179,26 @@ def link_to(name, url); {:name => name, :path => url}; end
179179
end
180180
end
181181

182-
context "when the 'show' action is disabled" do
182+
context "when the 'show' action is disabled", focus: true do
183183
let(:post_config) { double find_resource: post, resource_name: double(route_key: 'posts'),
184184
defined_actions: actions - [:show], # this is the change
185185
belongs_to_config: double(target: user_config) }
186186

187187
let(:path) { "/admin/posts/1/edit" }
188188

189189
it "should have 3 items" do
190-
expect(trail.size).to eq 3
190+
trail.size.should == 3
191191
end
192192
it "should have a link to /admin" do
193-
expect(trail[0][:name]).to eq "Admin"
194-
expect(trail[0][:path]).to eq "/admin"
193+
trail[0][:name].should == "Admin"
194+
trail[0][:path].should == "/admin"
195195
end
196196
it "should have a link to /admin/posts" do
197-
expect(trail[1][:name]).to eq "Posts"
198-
expect(trail[1][:path]).to eq "/admin/posts"
197+
trail[1][:name].should == "Posts"
198+
trail[1][:path].should == "/admin/posts"
199199
end
200200
it "should not link to the show view for the post" do
201-
expect(trail[2]).to eq "Hello World"
201+
trail[2].should == "Hello World"
202202
end
203203
end
204204

0 commit comments

Comments
 (0)