spec/support/driver_tables_collection.rb in baza-0.0.17 vs spec/support/driver_tables_collection.rb in baza-0.0.18
- old
+ new
@@ -1,12 +1,5 @@
shared_examples_for "a baza tables driver" do
- let(:constant){
- name = described_class.name.split("::").last
- const_name = "Info#{name.slice(0, 1).upcase}#{name.slice(1, name.length)}"
- require "#{File.dirname(__FILE__)}/../info_#{StringCases.camel_to_snake(name)}"
- raise "Constant was not defined: '#{const_name}'." unless Baza.const_defined?(const_name)
- Baza.const_get(const_name)
- }
let(:driver){ constant.new }
let(:driver2){ constant.new }
let(:db){ driver.db }
let(:db2){ driver2.db }
let(:test_table){