Sha256: 85e2daea590c1a902a1b5fc30352ab5cbdf8bb352b21d663101f17deaf412fd6
Contents?: true
Size: 888 Bytes
Versions: 4
Compression:
Stored size: 888 Bytes
Contents
# -*- encoding : utf-8 -*- describe Card::Set::Rstar::Rules do it "should render setting view for a right set" do r = Card['*read+*right'].format.render_open r.should_not match(/error/i) r.should_not match('No Card!') #warn "r = #{r}" assert_view_select r, 'table[class="set-rules"]' do assert_select 'a[href~="/*read+*right+*input?view=open_rule"]', :text => 'input' end end it "should render setting view for a *input rule" do Card::Auth.as_bot do r = Card.fetch('*read+*right+*input',:new=>{}).format.render_open_rule r.should_not match(/error/i) r.should_not match('No Card!') #warn "r = #{r}" assert_view_select r, 'tr[class="card-slot open-rule edit-rule"]' do assert_select 'input[id="success_id"][name=?][type="hidden"][value="*read+*right+*input"]', 'success[id]' end end end end
Version data entries
4 entries across 4 versions & 1 rubygems