wtforum 0.7.0 → 0.8.0

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.
@@ -0,0 +1,31 @@
1
+ require "spec_helper"
2
+
3
+ describe WTForum::Admin, vcr: true do
4
+ let(:wtforum_admin) { test_wtforum.admin }
5
+
6
+ it "gets api key" do
7
+ wtforum_admin.api_key.should == test_wtforum.api_key
8
+ end
9
+
10
+ it "gets and sets domain" do
11
+ old_domain = wtforum_admin.domain
12
+ wtforum_admin.domain = "wtf.complexityexplorer.org"
13
+ wtforum_admin.domain.should == "wtf.complexityexplorer.org"
14
+ wtforum_admin.domain = old_domain
15
+ end
16
+
17
+ it "gets and sets skin" do
18
+ old_skin = wtforum_admin.skin
19
+ wtforum_admin.skin = "Elegance"
20
+ wtforum_admin.skin.should == "Elegance"
21
+ wtforum_admin.skin = old_skin
22
+ end
23
+
24
+ it "gets and sets head_html" do
25
+ old_head_html = wtforum_admin.head_html
26
+ wtforum_admin.head_html = "<h1>"
27
+ wtforum_admin.head_html.should == "<h1>"
28
+ wtforum_admin.head_html = old_head_html
29
+ end
30
+ end
31
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wtforum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-08 00:00:00.000000000 Z
11
+ date: 2014-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -151,9 +151,14 @@ files:
151
151
  - README.md
152
152
  - Rakefile
153
153
  - lib/wtforum.rb
154
+ - lib/wtforum/admin.rb
154
155
  - lib/wtforum/session.rb
155
156
  - lib/wtforum/user.rb
156
157
  - lib/wtforum/version.rb
158
+ - spec/fixtures/vcr_cassettes/WTForum_Admin/gets_and_sets_domain.yml
159
+ - spec/fixtures/vcr_cassettes/WTForum_Admin/gets_and_sets_head_html.yml
160
+ - spec/fixtures/vcr_cassettes/WTForum_Admin/gets_and_sets_skin.yml
161
+ - spec/fixtures/vcr_cassettes/WTForum_Admin/gets_api_key.yml
157
162
  - spec/fixtures/vcr_cassettes/WTForum_Session/when_user_doesn_t_exist/raises_an_exception.yml
158
163
  - spec/fixtures/vcr_cassettes/WTForum_Session/when_user_exists/can_log_in_users.yml
159
164
  - spec/fixtures/vcr_cassettes/WTForum_User/can_CRUD_users.yml
@@ -161,6 +166,7 @@ files:
161
166
  - spec/fixtures/vcr_cassettes/WTForum_User/raises_an_exception_when_a_username_is_already_taken_and_the_retry_option_is_false.yml
162
167
  - spec/fixtures/vcr_cassettes/WTForum_User/retries_with_successive_usernames_if_one_is_already_taken.yml
163
168
  - spec/fixtures/vcr_cassettes/WTForum_User/returns_existing_user_if_one_already_exists.yml
169
+ - spec/integration/wtforum_admin_spec.rb
164
170
  - spec/integration/wtforum_session_spec.rb
165
171
  - spec/integration/wtforum_spec.rb
166
172
  - spec/integration/wtforum_user_spec.rb
@@ -186,11 +192,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
192
  version: '0'
187
193
  requirements: []
188
194
  rubyforge_project:
189
- rubygems_version: 2.0.3
195
+ rubygems_version: 2.2.0
190
196
  signing_key:
191
197
  specification_version: 4
192
198
  summary: Ruby library that wraps Website Toolbox's forum API.
193
199
  test_files:
200
+ - spec/fixtures/vcr_cassettes/WTForum_Admin/gets_and_sets_domain.yml
201
+ - spec/fixtures/vcr_cassettes/WTForum_Admin/gets_and_sets_head_html.yml
202
+ - spec/fixtures/vcr_cassettes/WTForum_Admin/gets_and_sets_skin.yml
203
+ - spec/fixtures/vcr_cassettes/WTForum_Admin/gets_api_key.yml
194
204
  - spec/fixtures/vcr_cassettes/WTForum_Session/when_user_doesn_t_exist/raises_an_exception.yml
195
205
  - spec/fixtures/vcr_cassettes/WTForum_Session/when_user_exists/can_log_in_users.yml
196
206
  - spec/fixtures/vcr_cassettes/WTForum_User/can_CRUD_users.yml
@@ -198,6 +208,7 @@ test_files:
198
208
  - spec/fixtures/vcr_cassettes/WTForum_User/raises_an_exception_when_a_username_is_already_taken_and_the_retry_option_is_false.yml
199
209
  - spec/fixtures/vcr_cassettes/WTForum_User/retries_with_successive_usernames_if_one_is_already_taken.yml
200
210
  - spec/fixtures/vcr_cassettes/WTForum_User/returns_existing_user_if_one_already_exists.yml
211
+ - spec/integration/wtforum_admin_spec.rb
201
212
  - spec/integration/wtforum_session_spec.rb
202
213
  - spec/integration/wtforum_spec.rb
203
214
  - spec/integration/wtforum_user_spec.rb