discuss 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +2 -2
- data/app/controllers/discuss/application_controller.rb +4 -4
- data/app/controllers/discuss/messages_controller.rb +1 -0
- data/app/helpers/discuss/application_helper.rb +1 -1
- data/app/models/discuss/message.rb +4 -0
- data/app/views/discuss/messages/_form.html.haml +1 -1
- data/lib/discuss/version.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +99 -0
- data/test/dummy/log/test.log +10082 -0
- data/test/features/workflow_test.rb +3 -0
- metadata +2 -4
- data/test/dummy/db/migrate/20130515063540_setup_discuss.discuss.rb +0 -23
@@ -121,6 +121,9 @@ class WorkFlowTest< FeatureTest
|
|
121
121
|
assert page.has_xpath?("//form[@action='/discuss/message/#{recieved_message.id}/reply']")
|
122
122
|
refute page.has_content?('Recipients')
|
123
123
|
end
|
124
|
+
|
125
|
+
recieved_message.reload
|
126
|
+
assert recieved_message.read?
|
124
127
|
end
|
125
128
|
|
126
129
|
it 'redirects to show view if uneditable?' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: discuss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elle Meredith
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -215,7 +215,6 @@ files:
|
|
215
215
|
- test/dummy/config.ru
|
216
216
|
- test/dummy/db/development.sqlite3
|
217
217
|
- test/dummy/db/migrate/20130428235128_create_users.rb
|
218
|
-
- test/dummy/db/migrate/20130515063540_setup_discuss.discuss.rb
|
219
218
|
- test/dummy/db/schema.rb
|
220
219
|
- test/dummy/db/test.sqlite3
|
221
220
|
- test/dummy/log/development.log
|
@@ -356,7 +355,6 @@ test_files:
|
|
356
355
|
- test/dummy/config.ru
|
357
356
|
- test/dummy/db/development.sqlite3
|
358
357
|
- test/dummy/db/migrate/20130428235128_create_users.rb
|
359
|
-
- test/dummy/db/migrate/20130515063540_setup_discuss.discuss.rb
|
360
358
|
- test/dummy/db/schema.rb
|
361
359
|
- test/dummy/db/test.sqlite3
|
362
360
|
- test/dummy/log/development.log
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# This migration comes from discuss (originally 20130419055252)
|
2
|
-
class SetupDiscuss < ActiveRecord::Migration
|
3
|
-
|
4
|
-
def change
|
5
|
-
create_table :discuss_messages do |t|
|
6
|
-
t.string :subject
|
7
|
-
t.text :body
|
8
|
-
t.integer :user_id
|
9
|
-
t.string :ancestry
|
10
|
-
t.string :draft_recipient_ids
|
11
|
-
t.datetime :sent_at
|
12
|
-
t.datetime :received_at
|
13
|
-
t.datetime :read_at
|
14
|
-
t.datetime :trashed_at
|
15
|
-
t.datetime :deleted_at
|
16
|
-
t.boolean :editable, default: true
|
17
|
-
|
18
|
-
t.timestamps
|
19
|
-
end
|
20
|
-
add_index :discuss_messages, :user_id
|
21
|
-
add_index :discuss_messages, :ancestry
|
22
|
-
end
|
23
|
-
end
|