~edwardloveall/scribe

ref: f05a12a880cbb1399925d9dc12317f6f5ce8a285 scribe/spec/actions/articles/show_spec.cr -rw-r--r-- 331 bytes
f05a12a8Edward Loveall Add support for missing posts a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require "../../spec_helper"

include ActionHelpers

describe Articles::Show do
  context "if the article is missing" do
    it "should raise a MissingPageError" do
      context = action_context(path: "/abc123")

      expect_raises(MissingPageError) do
        Articles::Show.new(context, params).call
      end
    end
  end
end