Sha256: 867057851da937139d38f596fa21e6132209e719504a1134b1ec47e9cee8a213
Contents?: true
Size: 850 Bytes
Versions: 18
Compression:
Stored size: 850 Bytes
Contents
require 'spec_helper' describe Dummy do context "ActiveModel Lint test" do subject { Dummy.new } it_should_behave_like "ActiveModel" end context "Client side validation" do let(:dummy) { Dummy.new } it "should not be valid" do dummy.should_not be_valid end end context "Configuration" do it "should be configurable" do Dummy.amfetamine_configure :memcached_instance => ['localhost:11211', {:key => 1}], :rest_client => DummyRestClient, :resource_suffix => '.json' cs = Dummy.instance_variable_get('@cache_server') cs.should be_a(Amfetamine::Cache) cs.instance_variable_get('@cache_server').instance_variable_get('@options').should include(:key => 1) # Annoying bug :/ Dummy.rest_client.should == DummyRestClient Dummy.resource_suffix.should == '.json' end end end
Version data entries
18 entries across 18 versions & 1 rubygems