rails_wordpress 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
module Wordpress
|
4
|
+
RSpec.describe Pagemeta, type: :model do
|
5
|
+
let(:pagemeta) { create(:pagemeta, meta_key: "foo", meta_value: "TEST") }
|
6
|
+
it "should create foo meta" do
|
7
|
+
expect(pagemeta.meta_key).to eq "foo"
|
8
|
+
expect(pagemeta.meta_value).to eq "TEST"
|
9
|
+
expect(pagemeta.page).to be_kind_of(Page)
|
10
|
+
expect(pagemeta.page.metas.all).to eq [pagemeta]
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_wordpress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Lang
|
@@ -155,6 +155,7 @@ files:
|
|
155
155
|
- app/models/wordpress/category.rb
|
156
156
|
- app/models/wordpress/link_category.rb
|
157
157
|
- app/models/wordpress/page.rb
|
158
|
+
- app/models/wordpress/pagemeta.rb
|
158
159
|
- app/models/wordpress/post.rb
|
159
160
|
- app/models/wordpress/post_tag.rb
|
160
161
|
- app/models/wordpress/postmeta.rb
|
@@ -214,6 +215,7 @@ files:
|
|
214
215
|
- spec/factories/category_factory.rb
|
215
216
|
- spec/factories/link_category_factory.rb
|
216
217
|
- spec/factories/page_factory.rb
|
218
|
+
- spec/factories/pagemeta_factory.rb
|
217
219
|
- spec/factories/post_factory.rb
|
218
220
|
- spec/factories/post_tag_factory.rb
|
219
221
|
- spec/factories/postmeta_factory.rb
|
@@ -228,6 +230,7 @@ files:
|
|
228
230
|
- spec/models/wordpress/category_spec.rb
|
229
231
|
- spec/models/wordpress/link_category_spec.rb
|
230
232
|
- spec/models/wordpress/page_spec.rb
|
233
|
+
- spec/models/wordpress/pagemeta_spec.rb
|
231
234
|
- spec/models/wordpress/post_spec.rb
|
232
235
|
- spec/models/wordpress/post_tag_spec.rb
|
233
236
|
- spec/models/wordpress/postmeta_spec.rb
|
@@ -308,6 +311,7 @@ test_files:
|
|
308
311
|
- spec/factories/category_factory.rb
|
309
312
|
- spec/factories/link_category_factory.rb
|
310
313
|
- spec/factories/page_factory.rb
|
314
|
+
- spec/factories/pagemeta_factory.rb
|
311
315
|
- spec/factories/post_factory.rb
|
312
316
|
- spec/factories/post_tag_factory.rb
|
313
317
|
- spec/factories/postmeta_factory.rb
|
@@ -322,6 +326,7 @@ test_files:
|
|
322
326
|
- spec/models/wordpress/category_spec.rb
|
323
327
|
- spec/models/wordpress/link_category_spec.rb
|
324
328
|
- spec/models/wordpress/page_spec.rb
|
329
|
+
- spec/models/wordpress/pagemeta_spec.rb
|
325
330
|
- spec/models/wordpress/post_spec.rb
|
326
331
|
- spec/models/wordpress/post_tag_spec.rb
|
327
332
|
- spec/models/wordpress/postmeta_spec.rb
|