spec/readme_examples_spec.rb in terrestrial-0.1.1 vs spec/readme_examples_spec.rb in terrestrial-0.3.0

- old
+ new

@@ -1,22 +1,18 @@ require "spec_helper" -require "support/mapper_setup" -require "support/sequel_persistence_setup" +require "support/object_store_setup" require "support/seed_data_setup" require "terrestrial" require "spec_helper" -require "support/mapper_setup" -require "support/sequel_persistence_setup" +require "support/object_store_setup" require "support/seed_data_setup" require "terrestrial" RSpec.describe "README examples" do - include_context "sequel persistence setup" - readme_contents = File.read("README.md") code_samples = readme_contents .split("```ruby") .drop(1) @@ -27,9 +23,10 @@ begin Module.new.module_eval(code_sample) rescue => e File.open("./example#{i}.rb", "w") { |f| f.puts(code_sample) } binding.pry if ENV["DEBUG"] + raise e end end end end