Sha256: fa43ccc900fe8ae90565a333f2807fc52ccce2d4b48c5a13fa910112b3146ea0
Contents?: true
Size: 626 Bytes
Versions: 4
Compression:
Stored size: 626 Bytes
Contents
require 'spec_helper' feature "Custom Block" do given(:admin) { create(:user, super_admin: true) } given(:category) { create(:category, num_posts: 0) } given(:post) { create(:post, :reviewed, category: category) } scenario 'uses block for controller action if provided' do login_and_navigate_to_post admin, post click_link "Reopen" current_path.should == admin_dashboard_path post.should be_reviewed end scenario 'respects :http_verb provided' do login_and_navigate_to_post admin, post link = find(".action_item a", text: "Reopen") link['data-method'].should == 'get' end end
Version data entries
4 entries across 4 versions & 2 rubygems