ember_serialize 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ember_serialize/version.rb +1 -1
- data/lib/ember_serialize.rb +2 -1
- data/test/dummy/app/assets/javascripts/models/comment.js.coffee +0 -1
- data/test/dummy/app/assets/javascripts/models/default/comment.js.coffee +0 -1
- data/test/dummy/app/assets/javascripts/models/default/post.js.coffee +0 -1
- data/test/dummy/app/assets/javascripts/models/default/user.js.coffee +0 -1
- data/test/dummy/app/assets/javascripts/models/post.js.coffee +0 -1
- data/test/dummy/app/assets/javascripts/models/tests/as_is.js.coffee +1 -2
- data/test/dummy/app/assets/javascripts/models/tests/async.js.coffee +1 -2
- data/test/dummy/app/assets/javascripts/models/tests/async_parse.js.coffee +1 -2
- data/test/dummy/app/assets/javascripts/models/tests/find_existing.js.coffee +1 -2
- data/test/dummy/app/assets/javascripts/models/tests/ignore.js.coffee +0 -1
- data/test/dummy/app/assets/javascripts/models/tests/ignore_id.js.coffee +8 -0
- data/test/dummy/app/assets/javascripts/models/tests/ignore_outside.js.coffee +0 -1
- data/test/dummy/app/assets/javascripts/models/user.js.coffee +0 -1
- data/test/dummy/log/test.log +696 -0
- data/test/ember_serialize_test.rb +8 -2
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf12c7ec4b046d92d09b628e86d42d783e2bbfa6
|
4
|
+
data.tar.gz: 9477e892cbd774d1d1a170f75f76dc1f8d5af38a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab8840016ec88e337dd3b39e2ab45fe4ea8a91e3cc488a9d8de4400b8f09988721bff03016390d973d09ba70ebc9e0299fa8d96399aa46710f3fcc4baf01c899
|
7
|
+
data.tar.gz: 224521071a26d8e7500e58eb0c092c666d81026ee67a420c502e149e4b65fadb61b6af93ee82cf44885426105969d9a31debf91f1a13437c453589719f4c33d8
|
data/lib/ember_serialize.rb
CHANGED
@@ -118,7 +118,7 @@ MODEL
|
|
118
118
|
end
|
119
119
|
end
|
120
120
|
else
|
121
|
-
existing[camel_name] || "#{indent}#{camel_name}: DS.attr('#{type}')"
|
121
|
+
existing[camel_name] || "#{indent}#{camel_name}: DS.attr('#{type || 'string'}')"
|
122
122
|
end
|
123
123
|
[camel_name, line]
|
124
124
|
end
|
@@ -195,6 +195,7 @@ MODEL
|
|
195
195
|
else
|
196
196
|
ember_reflect(model, name, :attribute, async, existing, indent, type)
|
197
197
|
end
|
198
|
+
next if camel_name == 'id'
|
198
199
|
unless ignore.include? camel_name
|
199
200
|
new_lines << line
|
200
201
|
end
|
@@ -3,9 +3,8 @@
|
|
3
3
|
EmberSerialize.Comment = DS.Model.extend
|
4
4
|
# ember_serialize:start
|
5
5
|
# ember_serialize:as_is post_id
|
6
|
-
id: DS.attr('integer'),
|
7
6
|
title: DS.attr('string'),
|
8
7
|
body: DS.attr('text'),
|
9
8
|
author: DS.belongsTo('user'),
|
10
9
|
post: DS.belongsTo('post')
|
11
|
-
# ember_serialize:end
|
10
|
+
# ember_serialize:end
|
@@ -3,9 +3,8 @@
|
|
3
3
|
EmberSerialize.Post = DS.Model.extend
|
4
4
|
# ember_serialize:start
|
5
5
|
# ember_serialize:async false
|
6
|
-
id: DS.attr('integer'),
|
7
6
|
title: DS.attr('string'),
|
8
7
|
body: DS.attr('text'),
|
9
8
|
authorDude: DS.belongsTo('user',{inverse:'find_existing'}),
|
10
9
|
comments: DS.hasMany('comments')
|
11
|
-
# ember_serialize:end
|
10
|
+
# ember_serialize:end
|
data/test/dummy/log/test.log
CHANGED
@@ -12760,5 +12760,701 @@ EmberSerializeTest: test_serializes_match_parameter
|
|
12760
12760
|
[1m[35m (0.1ms)[0m begin transaction
|
12761
12761
|
------------------------------------------------
|
12762
12762
|
EmberSerializeTest: test_skips_or_creates_models
|
12763
|
+
------------------------------------------------
|
12764
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12765
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
12766
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12767
|
+
-----------------------------------------------
|
12768
|
+
EmberSerializeTest: test_accepts_async_argument
|
12769
|
+
-----------------------------------------------
|
12770
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12771
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12772
|
+
------------------------------------------------
|
12773
|
+
EmberSerializeTest: test_accepts_engine_argument
|
12774
|
+
------------------------------------------------
|
12775
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12776
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12777
|
+
---------------------------------
|
12778
|
+
EmberSerializeTest: test_app_name
|
12779
|
+
---------------------------------
|
12780
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12781
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12782
|
+
-------------------------------------
|
12783
|
+
EmberSerializeTest: test_builds_model
|
12784
|
+
-------------------------------------
|
12785
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12786
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12787
|
+
--------------------------------------
|
12788
|
+
EmberSerializeTest: test_camelize_name
|
12789
|
+
--------------------------------------
|
12790
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
12791
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12792
|
+
--------------------------------------------------------------------------
|
12793
|
+
EmberSerializeTest: test_does_not_throw_NameError_on_ApplicationSerializer
|
12794
|
+
--------------------------------------------------------------------------
|
12795
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12796
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12797
|
+
------------------------------------
|
12798
|
+
EmberSerializeTest: test_ember_model
|
12799
|
+
------------------------------------
|
12800
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12801
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12802
|
+
------------------------------------------------
|
12803
|
+
EmberSerializeTest: test_ember_reflect_attribute
|
12804
|
+
------------------------------------------------
|
12805
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12806
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12807
|
+
-------------------------------------------------
|
12808
|
+
EmberSerializeTest: test_ember_reflect_belongs_to
|
12809
|
+
-------------------------------------------------
|
12810
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12811
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12812
|
+
-----------------------------------------------
|
12813
|
+
EmberSerializeTest: test_ember_reflect_has_many
|
12814
|
+
-----------------------------------------------
|
12815
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
12816
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12817
|
+
----------------------------------
|
12818
|
+
EmberSerializeTest: test_existence
|
12819
|
+
----------------------------------
|
12820
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
12821
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12822
|
+
----------------------------------
|
12823
|
+
EmberSerializeTest: test_ignore_id
|
12824
|
+
----------------------------------
|
12825
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12826
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12827
|
+
-----------------------------------
|
12828
|
+
EmberSerializeTest: test_initialize
|
12829
|
+
-----------------------------------
|
12830
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12831
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12832
|
+
----------------------------------------------
|
12833
|
+
EmberSerializeTest: test_makes_model_directory
|
12834
|
+
----------------------------------------------
|
12835
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12836
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12837
|
+
----------------------------------------------
|
12838
|
+
EmberSerializeTest: test_parses_async_argument
|
12839
|
+
----------------------------------------------
|
12840
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12841
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12842
|
+
-------------------------------------
|
12843
|
+
EmberSerializeTest: test_parses_model
|
12844
|
+
-------------------------------------
|
12845
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
12846
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12847
|
+
------------------------------------------------
|
12848
|
+
EmberSerializeTest: test_serialize_as_is_setting
|
12849
|
+
------------------------------------------------
|
12850
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12851
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12852
|
+
-----------------------------------------------------
|
12853
|
+
EmberSerializeTest: test_serialize_finds_associations
|
12854
|
+
-----------------------------------------------------
|
12855
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12856
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12857
|
+
-------------------------------------------------
|
12858
|
+
EmberSerializeTest: test_serialize_finds_existing
|
12859
|
+
-------------------------------------------------
|
12860
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12861
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12862
|
+
-------------------------------------------------
|
12863
|
+
EmberSerializeTest: test_serialize_ignore_setting
|
12864
|
+
-------------------------------------------------
|
12865
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12866
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12867
|
+
--------------------------------------------------
|
12868
|
+
EmberSerializeTest: test_serialize_ignores_outside
|
12869
|
+
--------------------------------------------------
|
12870
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12871
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12872
|
+
---------------------------------------------------
|
12873
|
+
EmberSerializeTest: test_serializes_match_parameter
|
12874
|
+
---------------------------------------------------
|
12875
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12876
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12877
|
+
------------------------------------------------
|
12878
|
+
EmberSerializeTest: test_skips_or_creates_models
|
12879
|
+
------------------------------------------------
|
12880
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12881
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
12882
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12883
|
+
-----------------------------------------------
|
12884
|
+
EmberSerializeTest: test_accepts_async_argument
|
12885
|
+
-----------------------------------------------
|
12886
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12887
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12888
|
+
------------------------------------------------
|
12889
|
+
EmberSerializeTest: test_accepts_engine_argument
|
12890
|
+
------------------------------------------------
|
12891
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12892
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12893
|
+
---------------------------------
|
12894
|
+
EmberSerializeTest: test_app_name
|
12895
|
+
---------------------------------
|
12896
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12897
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12898
|
+
-------------------------------------
|
12899
|
+
EmberSerializeTest: test_builds_model
|
12900
|
+
-------------------------------------
|
12901
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12902
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12903
|
+
--------------------------------------
|
12904
|
+
EmberSerializeTest: test_camelize_name
|
12905
|
+
--------------------------------------
|
12906
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12907
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12908
|
+
--------------------------------------------------------------------------
|
12909
|
+
EmberSerializeTest: test_does_not_throw_NameError_on_ApplicationSerializer
|
12910
|
+
--------------------------------------------------------------------------
|
12911
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12912
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12913
|
+
------------------------------------
|
12914
|
+
EmberSerializeTest: test_ember_model
|
12915
|
+
------------------------------------
|
12916
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12917
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12918
|
+
------------------------------------------------
|
12919
|
+
EmberSerializeTest: test_ember_reflect_attribute
|
12920
|
+
------------------------------------------------
|
12921
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
12922
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12923
|
+
-------------------------------------------------
|
12924
|
+
EmberSerializeTest: test_ember_reflect_belongs_to
|
12925
|
+
-------------------------------------------------
|
12926
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12927
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12928
|
+
-----------------------------------------------
|
12929
|
+
EmberSerializeTest: test_ember_reflect_has_many
|
12930
|
+
-----------------------------------------------
|
12931
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12932
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12933
|
+
----------------------------------
|
12934
|
+
EmberSerializeTest: test_existence
|
12935
|
+
----------------------------------
|
12936
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12937
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12938
|
+
----------------------------------
|
12939
|
+
EmberSerializeTest: test_ignore_id
|
12940
|
+
----------------------------------
|
12941
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
12942
|
+
[1m[35m (0.3ms)[0m begin transaction
|
12943
|
+
-----------------------------------
|
12944
|
+
EmberSerializeTest: test_initialize
|
12945
|
+
-----------------------------------
|
12946
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12947
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12948
|
+
----------------------------------------------
|
12949
|
+
EmberSerializeTest: test_makes_model_directory
|
12950
|
+
----------------------------------------------
|
12951
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12952
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12953
|
+
----------------------------------------------
|
12954
|
+
EmberSerializeTest: test_parses_async_argument
|
12955
|
+
----------------------------------------------
|
12956
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12957
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12958
|
+
-------------------------------------
|
12959
|
+
EmberSerializeTest: test_parses_model
|
12960
|
+
-------------------------------------
|
12961
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
12962
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12963
|
+
------------------------------------------------
|
12964
|
+
EmberSerializeTest: test_serialize_as_is_setting
|
12965
|
+
------------------------------------------------
|
12966
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12967
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12968
|
+
-----------------------------------------------------
|
12969
|
+
EmberSerializeTest: test_serialize_finds_associations
|
12970
|
+
-----------------------------------------------------
|
12971
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12972
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12973
|
+
-------------------------------------------------
|
12974
|
+
EmberSerializeTest: test_serialize_finds_existing
|
12975
|
+
-------------------------------------------------
|
12976
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12977
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12978
|
+
-------------------------------------------------
|
12979
|
+
EmberSerializeTest: test_serialize_ignore_setting
|
12980
|
+
-------------------------------------------------
|
12981
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12982
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12983
|
+
--------------------------------------------------
|
12984
|
+
EmberSerializeTest: test_serialize_ignores_outside
|
12985
|
+
--------------------------------------------------
|
12986
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12987
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12988
|
+
---------------------------------------------------
|
12989
|
+
EmberSerializeTest: test_serializes_match_parameter
|
12990
|
+
---------------------------------------------------
|
12991
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12992
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12993
|
+
------------------------------------------------
|
12994
|
+
EmberSerializeTest: test_skips_or_creates_models
|
12995
|
+
------------------------------------------------
|
12996
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12997
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
12998
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12999
|
+
-----------------------------------------------
|
13000
|
+
EmberSerializeTest: test_accepts_async_argument
|
13001
|
+
-----------------------------------------------
|
13002
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13003
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13004
|
+
------------------------------------------------
|
13005
|
+
EmberSerializeTest: test_accepts_engine_argument
|
13006
|
+
------------------------------------------------
|
13007
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13008
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13009
|
+
---------------------------------
|
13010
|
+
EmberSerializeTest: test_app_name
|
13011
|
+
---------------------------------
|
13012
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13013
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13014
|
+
-------------------------------------
|
13015
|
+
EmberSerializeTest: test_builds_model
|
13016
|
+
-------------------------------------
|
13017
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13018
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13019
|
+
--------------------------------------
|
13020
|
+
EmberSerializeTest: test_camelize_name
|
13021
|
+
--------------------------------------
|
13022
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13023
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13024
|
+
--------------------------------------------------------------------------
|
13025
|
+
EmberSerializeTest: test_does_not_throw_NameError_on_ApplicationSerializer
|
13026
|
+
--------------------------------------------------------------------------
|
13027
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13028
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13029
|
+
------------------------------------
|
13030
|
+
EmberSerializeTest: test_ember_model
|
13031
|
+
------------------------------------
|
13032
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13033
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13034
|
+
------------------------------------------------
|
13035
|
+
EmberSerializeTest: test_ember_reflect_attribute
|
13036
|
+
------------------------------------------------
|
13037
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13038
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13039
|
+
-------------------------------------------------
|
13040
|
+
EmberSerializeTest: test_ember_reflect_belongs_to
|
13041
|
+
-------------------------------------------------
|
13042
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13043
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13044
|
+
-----------------------------------------------
|
13045
|
+
EmberSerializeTest: test_ember_reflect_has_many
|
13046
|
+
-----------------------------------------------
|
13047
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13048
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13049
|
+
----------------------------------
|
13050
|
+
EmberSerializeTest: test_existence
|
13051
|
+
----------------------------------
|
13052
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13053
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13054
|
+
----------------------------------
|
13055
|
+
EmberSerializeTest: test_ignore_id
|
13056
|
+
----------------------------------
|
13057
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
13058
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13059
|
+
-----------------------------------
|
13060
|
+
EmberSerializeTest: test_initialize
|
13061
|
+
-----------------------------------
|
13062
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13063
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13064
|
+
----------------------------------------------
|
13065
|
+
EmberSerializeTest: test_makes_model_directory
|
13066
|
+
----------------------------------------------
|
13067
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13068
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13069
|
+
----------------------------------------------
|
13070
|
+
EmberSerializeTest: test_parses_async_argument
|
13071
|
+
----------------------------------------------
|
13072
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13073
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13074
|
+
-------------------------------------
|
13075
|
+
EmberSerializeTest: test_parses_model
|
13076
|
+
-------------------------------------
|
13077
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
13078
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13079
|
+
------------------------------------------------
|
13080
|
+
EmberSerializeTest: test_serialize_as_is_setting
|
13081
|
+
------------------------------------------------
|
13082
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13083
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13084
|
+
-----------------------------------------------------
|
13085
|
+
EmberSerializeTest: test_serialize_finds_associations
|
13086
|
+
-----------------------------------------------------
|
13087
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13088
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13089
|
+
-------------------------------------------------
|
13090
|
+
EmberSerializeTest: test_serialize_finds_existing
|
13091
|
+
-------------------------------------------------
|
13092
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13093
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13094
|
+
-------------------------------------------------
|
13095
|
+
EmberSerializeTest: test_serialize_ignore_setting
|
13096
|
+
-------------------------------------------------
|
13097
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13098
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13099
|
+
--------------------------------------------------
|
13100
|
+
EmberSerializeTest: test_serialize_ignores_outside
|
13101
|
+
--------------------------------------------------
|
13102
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13103
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13104
|
+
---------------------------------------------------
|
13105
|
+
EmberSerializeTest: test_serializes_match_parameter
|
13106
|
+
---------------------------------------------------
|
13107
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13108
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13109
|
+
------------------------------------------------
|
13110
|
+
EmberSerializeTest: test_skips_or_creates_models
|
13111
|
+
------------------------------------------------
|
13112
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13113
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13114
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13115
|
+
-----------------------------------------------
|
13116
|
+
EmberSerializeTest: test_accepts_async_argument
|
13117
|
+
-----------------------------------------------
|
13118
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13119
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13120
|
+
------------------------------------------------
|
13121
|
+
EmberSerializeTest: test_accepts_engine_argument
|
13122
|
+
------------------------------------------------
|
13123
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13124
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13125
|
+
---------------------------------
|
13126
|
+
EmberSerializeTest: test_app_name
|
13127
|
+
---------------------------------
|
13128
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13129
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13130
|
+
-------------------------------------
|
13131
|
+
EmberSerializeTest: test_builds_model
|
13132
|
+
-------------------------------------
|
13133
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13134
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13135
|
+
--------------------------------------
|
13136
|
+
EmberSerializeTest: test_camelize_name
|
13137
|
+
--------------------------------------
|
13138
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13139
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13140
|
+
--------------------------------------------------------------------------
|
13141
|
+
EmberSerializeTest: test_does_not_throw_NameError_on_ApplicationSerializer
|
13142
|
+
--------------------------------------------------------------------------
|
13143
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13144
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13145
|
+
------------------------------------
|
13146
|
+
EmberSerializeTest: test_ember_model
|
13147
|
+
------------------------------------
|
13148
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13149
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13150
|
+
------------------------------------------------
|
13151
|
+
EmberSerializeTest: test_ember_reflect_attribute
|
13152
|
+
------------------------------------------------
|
13153
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13154
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13155
|
+
-------------------------------------------------
|
13156
|
+
EmberSerializeTest: test_ember_reflect_belongs_to
|
13157
|
+
-------------------------------------------------
|
13158
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13159
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13160
|
+
-----------------------------------------------
|
13161
|
+
EmberSerializeTest: test_ember_reflect_has_many
|
13162
|
+
-----------------------------------------------
|
13163
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13164
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13165
|
+
----------------------------------
|
13166
|
+
EmberSerializeTest: test_existence
|
13167
|
+
----------------------------------
|
13168
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13169
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13170
|
+
----------------------------------
|
13171
|
+
EmberSerializeTest: test_ignore_id
|
13172
|
+
----------------------------------
|
13173
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
13174
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13175
|
+
-----------------------------------
|
13176
|
+
EmberSerializeTest: test_initialize
|
13177
|
+
-----------------------------------
|
13178
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13179
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13180
|
+
----------------------------------------------
|
13181
|
+
EmberSerializeTest: test_makes_model_directory
|
13182
|
+
----------------------------------------------
|
13183
|
+
[1m[36m (81.2ms)[0m [1mrollback transaction[0m
|
13184
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13185
|
+
----------------------------------------------
|
13186
|
+
EmberSerializeTest: test_parses_async_argument
|
13187
|
+
----------------------------------------------
|
13188
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13189
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13190
|
+
-------------------------------------
|
13191
|
+
EmberSerializeTest: test_parses_model
|
13192
|
+
-------------------------------------
|
13193
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13194
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13195
|
+
------------------------------------------------
|
13196
|
+
EmberSerializeTest: test_serialize_as_is_setting
|
13197
|
+
------------------------------------------------
|
13198
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13199
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13200
|
+
-----------------------------------------------------
|
13201
|
+
EmberSerializeTest: test_serialize_finds_associations
|
13202
|
+
-----------------------------------------------------
|
13203
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13204
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13205
|
+
-------------------------------------------------
|
13206
|
+
EmberSerializeTest: test_serialize_finds_existing
|
13207
|
+
-------------------------------------------------
|
13208
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13209
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13210
|
+
-------------------------------------------------
|
13211
|
+
EmberSerializeTest: test_serialize_ignore_setting
|
13212
|
+
-------------------------------------------------
|
13213
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13214
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13215
|
+
--------------------------------------------------
|
13216
|
+
EmberSerializeTest: test_serialize_ignores_outside
|
13217
|
+
--------------------------------------------------
|
13218
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13219
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13220
|
+
---------------------------------------------------
|
13221
|
+
EmberSerializeTest: test_serializes_match_parameter
|
13222
|
+
---------------------------------------------------
|
13223
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13224
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13225
|
+
------------------------------------------------
|
13226
|
+
EmberSerializeTest: test_skips_or_creates_models
|
13227
|
+
------------------------------------------------
|
13228
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13229
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13230
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13231
|
+
-----------------------------------------------
|
13232
|
+
EmberSerializeTest: test_accepts_async_argument
|
13233
|
+
-----------------------------------------------
|
13234
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13235
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13236
|
+
------------------------------------------------
|
13237
|
+
EmberSerializeTest: test_accepts_engine_argument
|
13238
|
+
------------------------------------------------
|
13239
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13240
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13241
|
+
---------------------------------
|
13242
|
+
EmberSerializeTest: test_app_name
|
13243
|
+
---------------------------------
|
13244
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13245
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13246
|
+
-------------------------------------
|
13247
|
+
EmberSerializeTest: test_builds_model
|
13248
|
+
-------------------------------------
|
13249
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13250
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13251
|
+
--------------------------------------
|
13252
|
+
EmberSerializeTest: test_camelize_name
|
13253
|
+
--------------------------------------
|
13254
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13255
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13256
|
+
--------------------------------------------------------------------------
|
13257
|
+
EmberSerializeTest: test_does_not_throw_NameError_on_ApplicationSerializer
|
13258
|
+
--------------------------------------------------------------------------
|
13259
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13260
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13261
|
+
------------------------------------
|
13262
|
+
EmberSerializeTest: test_ember_model
|
13263
|
+
------------------------------------
|
13264
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13265
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13266
|
+
------------------------------------------------
|
13267
|
+
EmberSerializeTest: test_ember_reflect_attribute
|
13268
|
+
------------------------------------------------
|
13269
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13270
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13271
|
+
-------------------------------------------------
|
13272
|
+
EmberSerializeTest: test_ember_reflect_belongs_to
|
13273
|
+
-------------------------------------------------
|
13274
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13275
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13276
|
+
-----------------------------------------------
|
13277
|
+
EmberSerializeTest: test_ember_reflect_has_many
|
13278
|
+
-----------------------------------------------
|
13279
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13280
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13281
|
+
----------------------------------
|
13282
|
+
EmberSerializeTest: test_existence
|
13283
|
+
----------------------------------
|
13284
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13285
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13286
|
+
----------------------------------
|
13287
|
+
EmberSerializeTest: test_ignore_id
|
13288
|
+
----------------------------------
|
13289
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13290
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13291
|
+
-----------------------------------
|
13292
|
+
EmberSerializeTest: test_initialize
|
13293
|
+
-----------------------------------
|
13294
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13295
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13296
|
+
----------------------------------------------
|
13297
|
+
EmberSerializeTest: test_makes_model_directory
|
13298
|
+
----------------------------------------------
|
13299
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13300
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13301
|
+
----------------------------------------------
|
13302
|
+
EmberSerializeTest: test_parses_async_argument
|
13303
|
+
----------------------------------------------
|
13304
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13305
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13306
|
+
-------------------------------------
|
13307
|
+
EmberSerializeTest: test_parses_model
|
13308
|
+
-------------------------------------
|
13309
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13310
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13311
|
+
------------------------------------------------
|
13312
|
+
EmberSerializeTest: test_serialize_as_is_setting
|
13313
|
+
------------------------------------------------
|
13314
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13315
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13316
|
+
-----------------------------------------------------
|
13317
|
+
EmberSerializeTest: test_serialize_finds_associations
|
13318
|
+
-----------------------------------------------------
|
13319
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13320
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13321
|
+
-------------------------------------------------
|
13322
|
+
EmberSerializeTest: test_serialize_finds_existing
|
13323
|
+
-------------------------------------------------
|
13324
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13325
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13326
|
+
-------------------------------------------------
|
13327
|
+
EmberSerializeTest: test_serialize_ignore_setting
|
13328
|
+
-------------------------------------------------
|
13329
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13330
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13331
|
+
--------------------------------------------------
|
13332
|
+
EmberSerializeTest: test_serialize_ignores_outside
|
13333
|
+
--------------------------------------------------
|
13334
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13335
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13336
|
+
---------------------------------------------------
|
13337
|
+
EmberSerializeTest: test_serializes_match_parameter
|
13338
|
+
---------------------------------------------------
|
13339
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13340
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13341
|
+
------------------------------------------------
|
13342
|
+
EmberSerializeTest: test_skips_or_creates_models
|
13343
|
+
------------------------------------------------
|
13344
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13345
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13346
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13347
|
+
-----------------------------------------------
|
13348
|
+
EmberSerializeTest: test_accepts_async_argument
|
13349
|
+
-----------------------------------------------
|
13350
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13351
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13352
|
+
------------------------------------------------
|
13353
|
+
EmberSerializeTest: test_accepts_engine_argument
|
13354
|
+
------------------------------------------------
|
13355
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13356
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13357
|
+
---------------------------------
|
13358
|
+
EmberSerializeTest: test_app_name
|
13359
|
+
---------------------------------
|
13360
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13361
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13362
|
+
-------------------------------------
|
13363
|
+
EmberSerializeTest: test_builds_model
|
13364
|
+
-------------------------------------
|
13365
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13366
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13367
|
+
--------------------------------------
|
13368
|
+
EmberSerializeTest: test_camelize_name
|
13369
|
+
--------------------------------------
|
13370
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13371
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13372
|
+
--------------------------------------------------------------------------
|
13373
|
+
EmberSerializeTest: test_does_not_throw_NameError_on_ApplicationSerializer
|
13374
|
+
--------------------------------------------------------------------------
|
13375
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13376
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13377
|
+
------------------------------------
|
13378
|
+
EmberSerializeTest: test_ember_model
|
13379
|
+
------------------------------------
|
13380
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13381
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13382
|
+
------------------------------------------------
|
13383
|
+
EmberSerializeTest: test_ember_reflect_attribute
|
13384
|
+
------------------------------------------------
|
13385
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13386
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13387
|
+
-------------------------------------------------
|
13388
|
+
EmberSerializeTest: test_ember_reflect_belongs_to
|
13389
|
+
-------------------------------------------------
|
13390
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13391
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13392
|
+
-----------------------------------------------
|
13393
|
+
EmberSerializeTest: test_ember_reflect_has_many
|
13394
|
+
-----------------------------------------------
|
13395
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13396
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13397
|
+
----------------------------------
|
13398
|
+
EmberSerializeTest: test_existence
|
13399
|
+
----------------------------------
|
13400
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13401
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13402
|
+
----------------------------------
|
13403
|
+
EmberSerializeTest: test_ignore_id
|
13404
|
+
----------------------------------
|
13405
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13406
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13407
|
+
-----------------------------------
|
13408
|
+
EmberSerializeTest: test_initialize
|
13409
|
+
-----------------------------------
|
13410
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13411
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13412
|
+
----------------------------------------------
|
13413
|
+
EmberSerializeTest: test_makes_model_directory
|
13414
|
+
----------------------------------------------
|
13415
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13416
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13417
|
+
----------------------------------------------
|
13418
|
+
EmberSerializeTest: test_parses_async_argument
|
13419
|
+
----------------------------------------------
|
13420
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13421
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13422
|
+
-------------------------------------
|
13423
|
+
EmberSerializeTest: test_parses_model
|
13424
|
+
-------------------------------------
|
13425
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13426
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13427
|
+
------------------------------------------------
|
13428
|
+
EmberSerializeTest: test_serialize_as_is_setting
|
13429
|
+
------------------------------------------------
|
13430
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13431
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13432
|
+
-----------------------------------------------------
|
13433
|
+
EmberSerializeTest: test_serialize_finds_associations
|
13434
|
+
-----------------------------------------------------
|
13435
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13436
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13437
|
+
-------------------------------------------------
|
13438
|
+
EmberSerializeTest: test_serialize_finds_existing
|
13439
|
+
-------------------------------------------------
|
13440
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13441
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13442
|
+
-------------------------------------------------
|
13443
|
+
EmberSerializeTest: test_serialize_ignore_setting
|
13444
|
+
-------------------------------------------------
|
13445
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13446
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13447
|
+
--------------------------------------------------
|
13448
|
+
EmberSerializeTest: test_serialize_ignores_outside
|
13449
|
+
--------------------------------------------------
|
13450
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13451
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13452
|
+
---------------------------------------------------
|
13453
|
+
EmberSerializeTest: test_serializes_match_parameter
|
13454
|
+
---------------------------------------------------
|
13455
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13456
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13457
|
+
------------------------------------------------
|
13458
|
+
EmberSerializeTest: test_skips_or_creates_models
|
12763
13459
|
------------------------------------------------
|
12764
13460
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
@@ -121,7 +121,7 @@ WITHOUTEM
|
|
121
121
|
|
122
122
|
test "parses model" do
|
123
123
|
revert_models
|
124
|
-
match = [["# for more details see: http://emberjs.com/guides/models/defining-models/", "", "EmberSerialize.Post = DS.Model.extend", " # ember_serialize:start", "
|
124
|
+
match = [["# for more details see: http://emberjs.com/guides/models/defining-models/", "", "EmberSerialize.Post = DS.Model.extend", " # ember_serialize:start", " title: DS.attr('string'),", " body: DS.attr('text'),", " comments: DS.hasMany('comments')", " # ember_serialize:end"], 3, 7, {"title"=>" title: DS.attr('string')", "body"=>" body: DS.attr('text')", "comments"=>" comments: DS.hasMany('comments')"}, [], [], true, " "]
|
125
125
|
result = @serializer.ember_model_parse "#{@mdir}post.js.coffee", Post
|
126
126
|
assert_equal match, result, 'ember_model_parse'
|
127
127
|
end
|
@@ -134,7 +134,6 @@ WITHOUTEM
|
|
134
134
|
EmberSerialize.Post = DS.Model.extend
|
135
135
|
# ember_serialize:start
|
136
136
|
# ember_serialize:async false
|
137
|
-
id: DS.attr('integer'),
|
138
137
|
title: DS.attr('string'),
|
139
138
|
body: DS.attr('text'),
|
140
139
|
authorDude: DS.belongsTo('user'),
|
@@ -179,6 +178,13 @@ EmberSerialize.Post = DS.Model.extend
|
|
179
178
|
assert_equal " postId: DS.attr('integer'),\n", read_model('comment', /postId:/), 'as_is setting'
|
180
179
|
end
|
181
180
|
|
181
|
+
test "ignore id" do
|
182
|
+
revert_models
|
183
|
+
prep_model 'ignore_id', 'post'
|
184
|
+
@serializer.serialize
|
185
|
+
assert_equal nil, read_model('post', /\sid:/), 'ignore_id setting'
|
186
|
+
end
|
187
|
+
|
182
188
|
test "serialize finds associations" do
|
183
189
|
revert_models
|
184
190
|
File.unlink "#{@mdir}post.js.coffee"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ember_serialize
|
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
|
- Noel Peden
|
@@ -122,6 +122,7 @@ files:
|
|
122
122
|
- test/dummy/app/assets/javascripts/models/tests/async_parse.js.coffee
|
123
123
|
- test/dummy/app/assets/javascripts/models/tests/find_existing.js.coffee
|
124
124
|
- test/dummy/app/assets/javascripts/models/tests/ignore.js.coffee
|
125
|
+
- test/dummy/app/assets/javascripts/models/tests/ignore_id.js.coffee
|
125
126
|
- test/dummy/app/assets/javascripts/models/tests/ignore_outside.js.coffee
|
126
127
|
- test/dummy/app/assets/javascripts/models/user.js.coffee
|
127
128
|
- test/dummy/app/assets/stylesheets/application.css
|
@@ -212,6 +213,7 @@ test_files:
|
|
212
213
|
- test/dummy/app/assets/javascripts/models/tests/async_parse.js.coffee
|
213
214
|
- test/dummy/app/assets/javascripts/models/tests/find_existing.js.coffee
|
214
215
|
- test/dummy/app/assets/javascripts/models/tests/ignore.js.coffee
|
216
|
+
- test/dummy/app/assets/javascripts/models/tests/ignore_id.js.coffee
|
215
217
|
- test/dummy/app/assets/javascripts/models/tests/ignore_outside.js.coffee
|
216
218
|
- test/dummy/app/assets/javascripts/models/user.js.coffee
|
217
219
|
- test/dummy/app/assets/stylesheets/application.css
|