Sha256: 3f075193031628389d30b90991c29adee607099622542667642668bb11668578
Contents?: true
Size: 679 Bytes
Versions: 7
Compression:
Stored size: 679 Bytes
Contents
# -*- encoding : utf-8 -*- require 'wagn/spec_helper' describe Card::Set::Type::SearchType do it "should wrap search items with correct view class" do Card.create :type=>'Search', :name=>'Asearch', :content=>%{{"type":"User"}} c=render_content("{{Asearch|core;item:name}}") c.should match('search-result-item item-name') render_content("{{Asearch|core;item:open}}").should match('search-result-item item-open') render_content("{{Asearch|core}}").should match('search-result-item item-closed') end it "should handle returning 'count'" do render_card(:core, :type=>'Search', :content=>%{{ "type":"User", "return":"count"}}).should == '10' end end
Version data entries
7 entries across 7 versions & 1 rubygems