Sha256: 4ab519476b7d80abd8744bbfcebdf732bb937b3782109981fb1259236df97c6c

Contents?: true

Size: 684 Bytes

Versions: 1

Compression:

Stored size: 684 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
require_fixtures

describe Aqua::Query do
  before(:each) do
    User::Storage.database.delete_all
    @time = Time.now
    @date = Date.parse('12/23/1969')
    @log = Log.new( :message => "Hello World! This is a log entry", :created_at => Time.now )
    @user = User.new(
      :username => 'kane',
      :name => ['Kane', 'Baccigalupi'],
      :dob => @date,
      :created_at => @time,
      :log => @log,
      :password => 'my secret!' 
    ) 
    @user.commit!
  end
  
  describe 'query_index' do 
    it 'should be a class method' do
      User.should respond_to(:query_index)
    end   
  end   
end  
   

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aqua-0.1.6 spec/object/query_spec.rb