spec/lib/build_spec.rb in docks_app-0.0.2 vs spec/lib/build_spec.rb in docks_app-0.0.3

- old
+ new

@@ -67,10 +67,17 @@ subject.setup(default_options) expect(File.read(copied_file)).to eq "# foo" end + it "preconfigures with the specified theme" do + default_options[:theme] = "API" + subject.setup(default_options) + expect(Docks.config.theme).to be_a Docks::Themes::API + expect(Docks.config.paginate).to eq "pattern" + end + it "configures the pattern library with the new config file" do expect(Docks).to receive(:configure).with no_args subject.setup(default_options) end @@ -181,11 +188,11 @@ end end describe ".parse" do before :each do - Docks.configure_with(root: empty_dir, library_assets: "") + Docks.configure_with(root: empty_dir) end it "adds the parse function to the top-level Docks namespace" do expect(subject).to receive(:parse) Docks.parse @@ -226,10 +233,10 @@ around do |example| original_dir = Dir.pwd FileUtils.mkdir_p(existing_dir) FileUtils.cd(existing_dir) Docks::Templates.send(:clean) - Docks.configure_with(destination: destination, root: existing_dir) + Docks.configure_with(destination: destination, root: existing_dir, theme: "API", paginate: "pattern") default_options[:script_language] = "coffeescript" subject.setup(default_options) example.run