Sha256: eb75d4430cebfcccadd99fefa7ea42aaceaecffefd71d9fc0540637a216dae64
Contents?: true
Size: 632 Bytes
Versions: 1
Compression:
Stored size: 632 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, :archived, category: category) } scenario 'uses block for controller action if provided' do login_and_navigate_to_post admin, post click_link "Reopen" expect(current_path).to eq(admin_dashboard_path) expect(be_reviewed) end scenario 'respects :http_verb provided' do login_and_navigate_to_post admin, post link = find(".action_item a", text: "Reopen") expect(link['data-method']).to eq('get') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_admin-workflow-0.1.0 | spec/features/custom_block_spec.rb |