-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #241 from ryanfox1985/development
I don't know why fail.
- Loading branch information
Showing
5 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ActiveRecord::Schema.define(version: 20150713103513) do | ||
create_table "dummies", force: :cascade do |t| | ||
t.string "name" | ||
|
||
t.datetime "created_at" | ||
t.datetime "updated_at" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require 'active_record' | ||
|
||
ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ':memory:' | ||
|
||
load 'spec/schema.rb' | ||
|
||
class Dummy < ActiveRecord::Base | ||
end | ||
|
||
Dummy.create(name: 'test') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# encoding: utf-8 | ||
module Wice | ||
describe TableColumnMatrix do | ||
GENERAL_CONDITIONS = 'conditions' | ||
|
||
it 'should new' do | ||
table = TableColumnMatrix.new | ||
|
||
expect(table.class).to eq(TableColumnMatrix) | ||
end | ||
|
||
it 'should add_condition' do | ||
table = TableColumnMatrix.new | ||
table.add_condition('key', GENERAL_CONDITIONS) | ||
|
||
expect(table.conditions).to include(GENERAL_CONDITIONS) | ||
end | ||
|
||
it 'should set default_model_class' do | ||
table = TableColumnMatrix.new | ||
table.default_model_class = Dummy | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters