Sha256: 76cfa1c82a083496712eb59f5468bd9fc444b010d11751f9c5dd478d7c77d5f7

Contents?: true

Size: 606 Bytes

Versions: 6

Compression:

Stored size: 606 Bytes

Contents

require 'spec_helper'

describe Search::Search do
  before do
    Crags::Config.stub!(:defaults).and_return({:keyword => 'cribz', :category => 'cribcat'})
    @default_obj = Search::Search.new
    @custom_obj = Search::Search.new(:keyword => 'zaks', :category => 'catz')
  end

  it "has a custom keyword" do
    @custom_obj.keyword.should == "zaks"
  end

  it "has a custom category" do
    @custom_obj.category.should == "catz"
  end

  it "has a custom keyword" do
    @default_obj.keyword.should == "cribz"
  end

  it "has a custom category" do
    @default_obj.category.should == "cribcat"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
crags-2.2.1 spec/crags/search/search_spec.rb
crags-2.2.0 spec/crags/search/search_spec.rb
crags-2.1.2 spec/crags/search/search_spec.rb
crags-2.1.1 spec/crags/search/search_spec.rb
crags-2.1.0 spec/crags/search/search_spec.rb
crags-2.0.0 spec/crags/search/search_spec.rb