Sha256: eff8a8405350650216e8ac49fdbaab26118d6fb01b9059afb7a623e1c2e36e60
Contents?: true
Size: 567 Bytes
Versions: 5
Compression:
Stored size: 567 Bytes
Contents
require 'ronin/code/sql/create_table' require 'ronin/code/sql/program' require 'code/sql/create_examples' describe CreateTable do before(:each) do @sql = CreateTable.new(common_dialect) end it_should_behave_like "Create" it "should have a columns clause" do columns = [:id, :name, :users] @sql.columns(*columns) should_have_clause(@sql,:columns) do |clause| clause.fields.should == columns end end it "should have a table option" do @sql.table :users @sql.instance_variable_get('@name').should == :users end end
Version data entries
5 entries across 5 versions & 1 rubygems