scratchpad 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,4 +39,15 @@ class RenderingTest < ActionDispatch::IntegrationTest
39
39
  assert_select ".scratch", { html: /baz/, count: 1 }
40
40
  assert_select ".scratch", { html: /buzz/, count: 1 }
41
41
  end
42
+
43
+ test "scratch should render calling file" do
44
+ get '/scratch'
45
+ assert_select ".scratch", { html: /scratch\.html\.erb/, count: 1 }
46
+ end
47
+
48
+ test "scratch should render calling line" do
49
+ get '/scratch'
50
+ assert_select ".scratch", { html: /3/, count: 1 }
51
+ end
52
+
42
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scratchpad
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - mcianni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-09 00:00:00.000000000 Z
11
+ date: 2015-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -32,10 +32,10 @@ extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
34
  - MIT-LICENSE
35
- - README.rdoc
36
35
  - Rakefile
37
36
  - app/assets/css/scratchpad.css
38
37
  - app/helpers/scratchpad_helper.rb
38
+ - app/views/scratchpad.html.erb
39
39
  - lib/scratchpad.rb
40
40
  - lib/scratchpad/middleware.rb
41
41
  - lib/scratchpad/page.rb
@@ -1,3 +0,0 @@
1
- = Scratchpad
2
-
3
- This project rocks and uses MIT-LICENSE.