Sha256: 43eb4ead8fa069492900f4a6c049796cb6c26eee21882e595176437e1aa1414a

Contents?: true

Size: 459 Bytes

Versions: 11

Compression:

Stored size: 459 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper.rb'

class TestRestfulQueryCanQuery < Test::Unit::TestCase

  context "CanQuery" do
    context "A class with the can_query macro" do
      should "can_query?" do
        assert ClassWithQuery.can_query?
      end
    end
    
    context "A class without the can_query macro" do
      should "not can_query?" do
        assert !ClassWithoutQuery.can_query?
      end
    end
    
  end

end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
quirkey-restful_query-0.2.0 test/test_restful_query_can_query.rb
quirkey-restful_query-0.3.0 test/test_restful_query_can_query.rb
restful_query-0.3.6 test/test_restful_query_can_query.rb
restful_query-0.3.5 test/test_restful_query_can_query.rb
restful_query-0.3.4 test/test_restful_query_can_query.rb
restful_query-0.3.3 test/test_restful_query_can_query.rb
restful_query-0.3.2 test/test_restful_query_can_query.rb
restful_query-rails3-0.4 test/test_restful_query_can_query.rb
restful_query-0.3.1 test/test_restful_query_can_query.rb
restful_query-0.3.0 test/test_restful_query_can_query.rb
restful_query-0.2.0 test/test_restful_query_can_query.rb