marks 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/Rakefile +3 -3
  2. data/lib/marks/marker.rb +2 -1
  3. data/lib/marks/version.rb +1 -1
  4. metadata +21 -83
  5. data/test/dummy/README.rdoc +0 -261
  6. data/test/dummy/Rakefile +0 -7
  7. data/test/dummy/app/assets/javascripts/application.js +0 -15
  8. data/test/dummy/app/assets/stylesheets/application.css +0 -13
  9. data/test/dummy/app/controllers/application_controller.rb +0 -3
  10. data/test/dummy/app/helpers/application_helper.rb +0 -2
  11. data/test/dummy/app/models/reply.rb +0 -3
  12. data/test/dummy/app/models/user.rb +0 -3
  13. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  14. data/test/dummy/config/application.rb +0 -59
  15. data/test/dummy/config/boot.rb +0 -10
  16. data/test/dummy/config/database.yml +0 -25
  17. data/test/dummy/config/environment.rb +0 -5
  18. data/test/dummy/config/environments/development.rb +0 -37
  19. data/test/dummy/config/environments/production.rb +0 -67
  20. data/test/dummy/config/environments/test.rb +0 -37
  21. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  22. data/test/dummy/config/initializers/inflections.rb +0 -15
  23. data/test/dummy/config/initializers/mime_types.rb +0 -5
  24. data/test/dummy/config/initializers/secret_token.rb +0 -7
  25. data/test/dummy/config/initializers/session_store.rb +0 -8
  26. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  27. data/test/dummy/config/locales/en.yml +0 -5
  28. data/test/dummy/config/routes.rb +0 -58
  29. data/test/dummy/config.ru +0 -4
  30. data/test/dummy/db/development.sqlite3 +0 -0
  31. data/test/dummy/db/migrate/20121116121913_create_users.rb +0 -7
  32. data/test/dummy/db/migrate/20121116121922_create_replies.rb +0 -7
  33. data/test/dummy/db/schema.rb +0 -38
  34. data/test/dummy/db/test.sqlite3 +0 -0
  35. data/test/dummy/log/development.log +0 -300
  36. data/test/dummy/log/test.log +0 -1456
  37. data/test/dummy/public/404.html +0 -26
  38. data/test/dummy/public/422.html +0 -26
  39. data/test/dummy/public/500.html +0 -25
  40. data/test/dummy/public/favicon.ico +0 -0
  41. data/test/dummy/script/rails +0 -6
  42. data/test/marks_test.rb +0 -28
  43. data/test/test_helper.rb +0 -15
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/404.html -->
21
- <div class="dialog">
22
- <h1>The page you were looking for doesn't exist.</h1>
23
- <p>You may have mistyped the address or the page may have moved.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/422.html -->
21
- <div class="dialog">
22
- <h1>The change you wanted was rejected.</h1>
23
- <p>Maybe you tried to change something you didn't have access to.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,25 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/500.html -->
21
- <div class="dialog">
22
- <h1>We're sorry, but something went wrong.</h1>
23
- </div>
24
- </body>
25
- </html>
File without changes
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'
data/test/marks_test.rb DELETED
@@ -1,28 +0,0 @@
1
- require 'test_helper'
2
-
3
- class MarksTest < ActiveSupport::TestCase
4
- setup do
5
- @user = User.create!
6
- @reply = Reply.create!
7
- end
8
-
9
- test '#marks' do
10
- assert !@user.marks?(@reply, :nice)
11
- assert_raise(ArgumentError) { @user.marks?(@reply, :unknown_mark) }
12
- @user.marks(@reply, :nice)
13
- assert @user.marks?(@reply, :nice)
14
- end
15
-
16
- test '#markers' do
17
- assert @reply.markers(:user, :nice).empty?
18
- 3.times { @user.marks(@reply, :nice) }
19
- assert_equal [@user, @user, @user], @reply.markers(:user, :nice)
20
- assert_raise(ArgumentError) { @reply.markers(:user, :unknown_mark) }
21
- end
22
-
23
- test '#unmarks' do
24
- 3.times { @user.marks(@reply, :nice) }
25
- @user.unmarks(@reply, :nice)
26
- assert !@user.marks?(@reply, :nice)
27
- end
28
- end
data/test/test_helper.rb DELETED
@@ -1,15 +0,0 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
- require "rails/test_help"
6
-
7
- Rails.backtrace_cleaner.remove_silencers!
8
-
9
- # Load support files
10
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
-
12
- # Load fixtures from the engine
13
- if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
- end