{"action":"closed","issue":{"url":"https://api.github.com/repos/neopragma/bash-spec/issues/1","labels_url":"https://api.github.com/repos/neopragma/bash-spec/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/neopragma/bash-spec/issues/1/comments","events_url":"https://api.github.com/repos/neopragma/bash-spec/issues/1/events","html_url":"https://github.com/neopragma/bash-spec/issues/1","id":44656937,"number":1,"title":"Expected and actual are the wrong way around","user":{"login":"holmesjr","id":1607033,"avatar_url":"https://avatars.githubusercontent.com/u/1607033?v=3","gravatar_id":"","url":"https://api.github.com/users/holmesjr","html_url":"https://github.com/holmesjr","followers_url":"https://api.github.com/users/holmesjr/followers","following_url":"https://api.github.com/users/holmesjr/following{/other_user}","gists_url":"https://api.github.com/users/holmesjr/gists{/gist_id}","starred_url":"https://api.github.com/users/holmesjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holmesjr/subscriptions","organizations_url":"https://api.github.com/users/holmesjr/orgs","repos_url":"https://api.github.com/users/holmesjr/repos","events_url":"https://api.github.com/users/holmesjr/events{/privacy}","received_events_url":"https://api.github.com/users/holmesjr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neopragma/bash-spec/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-10-02T07:11:22Z","updated_at":"2015-03-07T16:46:27Z","closed_at":"2015-03-07T16:46:27Z","body":"```\r\nfunction to_be {\r\n    _actual_=\"$1\"\r\n```\r\n\r\nThe argument to to_be would be the expected, not the actual:\r\n\r\nexpect $some_actual_value to_be \"the expected value\"\r\n\r\nThis shows in the failure messages for expectations. With the code:\r\n\r\n```\r\nfred=\"hello\"\r\nexpect $fred to_be \"junk\"\r\n```\r\nthe output is:\r\n\r\n... `expected: hello | actual: junk`\r\n\r\nHappy to send you pull request that fixes the problem, if you're happy to receive it."}}