vimrc/sources_non_forked/vim-elixir/spec/syntax/struct_spec.rb

18 lines
338 B
Ruby

require 'spec_helper'
describe "Struct syntax" do
it "without defaults" do
<<-EOF
defstruct [:name, :age]
EOF
.should include_elixir_syntax('elixirAtom', ':name')
end
it "with defaults" do
<<-EOF
defstruct name: "john", age: 27
EOF
.should include_elixir_syntax('elixirAtom', 'name:')
end
end