Sha256: bb2849534e750b5de35a3c2681f0717bcfa60f59fa15a6bdba830488541789b2

Contents?: true

Size: 500 Bytes

Versions: 9

Compression:

Stored size: 500 Bytes

Contents

require "spec_helper"

describe "The Page Document Type" do
  let(:page) { Brief.page_document.model_class }
  let(:concept) { Brief::Concept }

  it "should have some example content" do
    expect(page.example_content).not_to be_empty
  end

  it "should return the example because there's no prompt defined" do
    expect(page.writing_prompt).to eq page.example_content
  end

  it "should return whatever is defined in the prompt dsl" do
    expect(concept.writing_prompt).to eq "asdf"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
brief-1.12.9 spec/lib/brief/models/writing_prompt_spec.rb
brief-1.12.8 spec/lib/brief/models/writing_prompt_spec.rb
brief-1.12.7 spec/lib/brief/models/writing_prompt_spec.rb
brief-1.12.6 spec/lib/brief/models/writing_prompt_spec.rb
brief-1.12.5 spec/lib/brief/models/writing_prompt_spec.rb
brief-1.12.4 spec/lib/brief/models/writing_prompt_spec.rb
brief-1.12.3 spec/lib/brief/models/writing_prompt_spec.rb
brief-1.12.2 spec/lib/brief/models/writing_prompt_spec.rb
brief-1.12.1 spec/lib/brief/models/writing_prompt_spec.rb