spec/lib/brief/dsl_spec.rb in brief-0.0.5 vs spec/lib/brief/dsl_spec.rb in brief-1.0.0

- old
+ new

@@ -1,21 +1,10 @@ require "spec_helper" -describe "The Publisher definition DSL" do - before(:all) do - require Brief.fixtures.join("generator_dsl_example.rb") - end - it "should define a generator called Project Overview" do - expect(Brief::Publisher.fetch("Project Overview")).to be_present - end +describe "The Configuration DSL" do + let(:briefcase) { Brief.example } - it "should find the appropriate Publisher by using an alias" do - expect(Brief::Publisher.fetch("project_overview")).to be_present + it "can create methods on our models" do + expect(briefcase.user_stories.first.defined_helper_method).to eq(true) end - - it "should find the appropriate Publisher using a case insensitve search" do - expect(Brief::Publisher.fetch("project overview")).to be_present - end - - end