Sha256: c30657e2a454f407678162b1963439a1d3a18ce429733a36971ffb9d5746e3e4
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
require 'pry' require 'rails' require 'fire-model' require 'sw2at-ui' # models require Swat::Engine.root.join 'app/models/revision' require Swat::Engine.root.join 'app/models/test_case' require Swat::Engine.root.join 'app/models/revision_status_calculator' require Swat::Engine.root.join 'app/models/full_revision' # libs require Swat::Engine.root.join 'lib/swat/ui/rspec_commands' # Fixtures require Swat::Engine.root.join 'fixtures/firebase_collection' RSpec.configure do |config| config.before :all do Swat::UI.setup({}, {firebase_path: ENV['TEST_FIREBASE_URL']}) Fire.setup(firebase_path: (Swat::UI.config.options[:firebase_path])) end def clean_firebase! Fire.drop! end def current_data Fire.tree end def recursive_symbolize_keys! hash hash.symbolize_keys! hash.values.select{|v| v.is_a? Hash}.each{|h| recursive_symbolize_keys!(h)} hash.values.select{|v| v.is_a? Array}.each{|child| child.select{|v| v.is_a? Hash}.each{|h| recursive_symbolize_keys!(h)} } hash end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sw2at-ui-0.0.4 | spec/spec_helper.rb |
sw2at-ui-0.0.3 | spec/spec_helper.rb |