diff options
Diffstat (limited to 'spec/models/project_spec.rb')
| -rw-r--r-- | spec/models/project_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 28ccca7..482a401 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -133,6 +133,11 @@ describe Project do it { parsed_project.name.should eq("GitLab / api.gitlab.org") } it { parsed_project.gitlab_id.should eq(189) } it { parsed_project.gitlab_url.should eq("http://localhost:3000/gitlab/api-gitlab-org") } + + it "parses plain hash" do + data = YAML.load(project_dump) + Project.parse(data).name.should eq("GitLab / api.gitlab.org") + end end describe :repo_url_with_auth do |
