spec/adapter_spec.rb in chrono_model-0.5.2 vs spec/adapter_spec.rb in chrono_model-0.5.3
- old
+ new
@@ -44,11 +44,11 @@
before { adapter.stub(:postgresql_version => 80400) }
it { should_not be_chrono_supported }
end
end
- let(:table) { 'test_table' }
+ table 'test_table'
subject { table }
columns do
native = [
['test', 'character varying(255)'],
@@ -78,11 +78,10 @@
it_should_behave_like 'plain table'
end
end
describe '.rename_table' do
- let(:table) { 'test_table' }
- let(:renamed) { 'foo_table' }
+ renamed = 'foo_table'
subject { renamed }
context ':temporal => true' do
before :all do
adapter.create_table table, :temporal => true, &columns