@@ -120,19 +120,19 @@ defmodule Construct.Integration.BuildTest do
120120 end
121121
122122 test "raise when trying to use undefined module as custom type" do
123- assert_raise ( Construct.DefinitionError , ~s( undefined module Elixir. UndefinedModule) , fn ->
123+ assert_raise ( Construct.DefinitionError , ~s( undefined module UndefinedModule) , fn ->
124124 create_construct do
125125 field :key , UndefinedModule
126126 end
127127 end )
128128
129- assert_raise ( Construct.DefinitionError , ~s( undefined module Elixir. UndefinedModule) , fn ->
129+ assert_raise ( Construct.DefinitionError , ~s( undefined module UndefinedModule) , fn ->
130130 create_construct do
131131 field :key , { :array , UndefinedModule }
132132 end
133133 end )
134134
135- assert_raise ( Construct.DefinitionError , ~s( undefined module Elixir. UndefinedModule) , fn ->
135+ assert_raise ( Construct.DefinitionError , ~s( undefined module UndefinedModule) , fn ->
136136 create_construct do
137137 field :key , { :map , UndefinedModule }
138138 end
@@ -144,33 +144,33 @@ defmodule Construct.Integration.BuildTest do
144144 end
145145 end )
146146
147- assert_raise ( Construct.DefinitionError , ~s( undefined module Elixir. UndefinedModule) , fn ->
147+ assert_raise ( Construct.DefinitionError , ~s( undefined module UndefinedModule) , fn ->
148148 create_construct do
149149 field :key , [ UndefinedModule ]
150150 end
151151 end )
152152
153- assert_raise ( Construct.DefinitionError , ~s( undefined module Elixir. UndefinedModule) , fn ->
153+ assert_raise ( Construct.DefinitionError , ~s( undefined module UndefinedModule) , fn ->
154154 create_construct do
155155 field :key , [ CustomType , UndefinedModule ]
156156 end
157157 end )
158158 end
159159
160160 test "raise when trying to use custom type that doesn't have cast/1 function" do
161- assert_raise ( Construct.DefinitionError , ~s( undefined function cast/1 for Elixir. CustomTypeEmpty) , fn ->
161+ assert_raise ( Construct.DefinitionError , ~s( undefined function cast/1 for CustomTypeEmpty) , fn ->
162162 create_construct do
163163 field :key , CustomTypeEmpty
164164 end
165165 end )
166166
167- assert_raise ( Construct.DefinitionError , ~s( undefined function cast/1 for Elixir. CustomTypeEmpty) , fn ->
167+ assert_raise ( Construct.DefinitionError , ~s( undefined function cast/1 for CustomTypeEmpty) , fn ->
168168 create_construct do
169169 field :key , { :array , CustomTypeEmpty }
170170 end
171171 end )
172172
173- assert_raise ( Construct.DefinitionError , ~s( undefined function cast/1 for Elixir. CustomTypeEmpty) , fn ->
173+ assert_raise ( Construct.DefinitionError , ~s( undefined function cast/1 for CustomTypeEmpty) , fn ->
174174 create_construct do
175175 field :key , { :map , CustomTypeEmpty }
176176 end
@@ -182,29 +182,29 @@ defmodule Construct.Integration.BuildTest do
182182 end
183183 end )
184184
185- assert_raise ( Construct.DefinitionError , ~s( undefined function cast/1 for Elixir. CustomTypeEmpty) , fn ->
185+ assert_raise ( Construct.DefinitionError , ~s( undefined function cast/1 for CustomTypeEmpty) , fn ->
186186 create_construct do
187187 field :key , [ CustomTypeEmpty ]
188188 end
189189 end )
190190
191- assert_raise ( Construct.DefinitionError , ~s( undefined function cast/1 for Elixir. CustomTypeEmpty) , fn ->
191+ assert_raise ( Construct.DefinitionError , ~s( undefined function cast/1 for CustomTypeEmpty) , fn ->
192192 create_construct do
193193 field :key , [ CustomType , CustomTypeEmpty ]
194194 end
195195 end )
196196 end
197197
198198 test "raise when trying to include undefined module" do
199- assert_raise ( Construct.DefinitionError , ~s( undefined module Elixir. UndefinedModule) , fn ->
199+ assert_raise ( Construct.DefinitionError , ~s( undefined module UndefinedModule) , fn ->
200200 create_construct do
201201 include UndefinedModule
202202 end
203203 end )
204204 end
205205
206206 test "raise when trying to include invalid structure (some module)" do
207- assert_raise ( Construct.DefinitionError , ~s( provided Elixir. CustomTypeEmpty is not Construct module) , fn ->
207+ assert_raise ( Construct.DefinitionError , ~s( provided CustomTypeEmpty is not Construct module) , fn ->
208208 create_construct do
209209 include CustomTypeEmpty
210210 end
0 commit comments